Auto populate fields by training custom ML models

Custom ML Extraction is a way to teach a machine learning model how to auto populate fields by using previously coded examples as training data.

As an alternative to using a regular expression to auto populate a field, Custom ML Extraction will rely on your use of Contract's send to field feature in the viewer to manually populate fields for many examples. Those examples will then be used as guidance for a new machine learning model you can build and train from within the same workspace.

Contracts auto populates fixed-length and long text fields.

Create and train a custom model

To auto populate fixed-length text and long text field types:

  1. Open the Contracts Models tab.
  2. Click New Contracts Model.
  3. Name your model.
  4. For Model Type, select ML Extraction.
  5. Add a description.
  6. On the Training Notifications card enter email addresses, separated by lines, for users that should receive notifications when the model training completes.
  7. On the Populate Existing Field card, select the fixed-length text or long text field you want to populate.
  8. On the Model Training card, select the Field To Train On. This is the field you coded as examples.
    Select a Training source. This is the saved search that holds all the documents for which you sent-to-field.
  9. For Existing Value Options, if there is already a value in the field you are auto populating, you can control whether you'd like Contracts to:
    • Prepend—put the new result before that text.
    • Append—put the new result after that text.
    • Replace—replace that text.
    • Do nothing—leave that text.
    • For date fields, you can only replace or do nothing.

  10. On the Store Additional Text Around Result card, you can select a long text field to store the text of the section, if segmented, in which the auto-populating result is found.
    An image of the Store Additional Text Around Result section.

    Note: If the document does not have sections, there are some advanced options for storing text around your regex result.

    • You can tell Contracts to leave the field blank if there is no section.
    • You can tell Contracts to default to a certain number of words before/after the result if there is no section.
    • Even if the document does have sections, you can tell Contracts to ignore them and only look for a certain number of words before or after the result.

  11. Click Save.
  12. Click Train Model.

Run a custom model

To run a custom model:

  1. Open the Contracts Analysis Profiles tab.
  2. Click New Contracts Analysis Profile.
  3. Name your analysis profile.
  4. Add a description.
  5. On the Extraction tab, add the model you created.
  6. Click Save.

To use your analysis profile:

  1. Go to the Contracts Analysis Sets tab.
  2. Click New Contracts Analysis Set.
  3. Name your analysis set.
  4. Choose the analysis profile you created.
  5. Select a saved search to run the analysis on.
  6. Click Analyze.

Frequently asked questions