English (English) - Change language

Sample 2. Step 17: Creating a CookingTime element

To create the CookingTime element:

  1. Create an element of type Character String and name it CookingTime.
  2. Click the Character String tab.
  3. Set the required alphabet. Judging by the test images, the alphabet includes only digits.
  4. Set the Percentage of alphabet characters to 1.
  5. Clear the Allow embedded hypotheses box.
  6. Set the Percentage of non-alphabet characters to 10%.
  7. In the Character count field, specify this fuzzy range {0, 1, 3, 4}. This interval is an estimation of the length of the string of characters. We assume that the string may be 1 to 3 characters long. Any hypotheses outside this range will be penalized.
  8. Click the Relations tab.
  9. On the Relations tab, specify that the number indicating the cooking time is always located to the left of the units of time, and that the distance between the digits and the time units cannot exceed 100 dots (i.e. Left of the CookingTimeHeader element, Offset = 0 and Right of the left boundary of the CookingTimeHeader element, Offset = –100, Reference boundary = left).
  10. Since the cooking time is always written on the same level as the units of time, add the following search constraints:
    • Above the CookingTimeHeader element, Offset = -20, Reference boundary = bottom
    • Below the CookingTimeHeader element, Offset = -20, Reference boundary = top

25.09.2020 9:24:45


Please leave your feedback about this article