Applies to: v3.0.x to v3.1.x

Selecting Value with Mouse

  1. Ephesoft first looks at the dcma-value-regex.properties file and finds the matching value expression.
  2. The dcma-location-regex file is then looked at to determine the location to look for the key
  3. dcma-key-regex.properties is checked next, if there is no match there, it will take the first word that is more than x characters long where x is minimum length set in the value expression.

Params / Options

  • Field Order
    Specifies where we should look after finding the value.

When pattern(value) is found, we will look at to the LEFT/RIGHT/etc of it to find the Key. If nothing is found there it will look at the 2nd location as defined in the properties file.

  • Fetch Value
    There are three values, Key-Value can be configured to return first value it finds or last or all.
  • No Of Words(simple KV only)
    Specifies the additional number of words to grab.

2.4 Feature/Change

  1. Plugin can be switched on/off from admin UI by navigating to the following location:
    [{batch-class} -> edit -> export -> Edit-> KEY_VALUE_LEARNING_PLUGIN] -> Edit]
  2. Configure the properties in {ephesoft-home}\WEB-INF\classes\META-INF \dcma-key-value-learning\ dcma-regex-location.properties
    1. Configure the “location order” in which key will be searched with respect to value.
      Key_value.location_order=TOP;LEFT;RIGHT;BOTTOM;TOP_LEFT;TOP_RIGHT;BOTTOM_LEFT;BOTTOM_RIGHT;
    2. Configure “maximum number of records” in document level field for a document type in a batch class (Max number of Regex Expressions per document type).
      Default value is 50.
      key_value.max_number_record=50
    3. Configure “Threshold_Value” used for value rectangle creation (Error Margin).
      Default value is 10.
      key_value.tolerance_threshold=10
    4. Configure value of multiplier for key value field.
      key_value.multiplier=1
    5. Configure “fetch_value” for value extraction in key value field.
      Default value is ALL
      key_value.fetch_value=ALL
  3. User can add his regex patterns in the following file:
    {ephesoft-home}\WEB-INF\classes\META-INF \dcma-key-value-learning\ dcma-value-regex.properties
    (Sample values have been provided within the properties file)
  4. User can add his regex patterns in the following file:
    {ephesoft-home}\WEB-INF\classes\META-INF \dcma-key-value-learning\ dcma-key-regex.properties
    (Sample values have been provided within the properties file)

Was this article helpful to you?

wikiadmin

Comments are closed.