Sample 2. Step 17: Creating a CookingTime element
To create the CookingTime element:
- Create an element of type Character String and name it CookingTime.
- Click the Character String tab.
- Set the required alphabet. Judging by the test images, the alphabet includes only digits.
- Set the Percentage of alphabet characters to 1.
- Clear the Allow embedded hypotheses box.
- Set the Percentage of non-alphabet characters to 10%.
- 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.
- Click the Relations tab.
- 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).
- 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
4/12/2024 6:16:02 PM