Skip to main contentAdvanced Designer supports user dictionaries in TXT and XML formats.
TXT Dictionaries Usage
A TXT dictionary is a simple list of search text variants for a Static Text search element. You can access a TXT user dictionary both from the element’s Properties pane and from the code using the SearchTextFromFile function.
Each line should contain one search text variant. You can use | (the OR operator) to construct phrases from words. For more information about specifying search text variants, see Static Text Element.
XML Dictionaries Usage
XML dictionaries are useful when you have different sets of data associated with the same entity and need to select a suitable set of data depending on the document’s features. Here are some typical use cases:
- You want to search for a keyword on documents in different languages. You can compile lists of possible keywords for each language and put them into a single XML file. Then you need to detect the language of each document and request the appropriate list of keywords when setting up a Static Text element.
- You want to check the values of several elements against lists of allowed values. You can compile lists of allowed values and put them into a single XML file. Then you can request the corresponding list of values from the code of each element.
- Your document set contains documents from different countries and you need to use some country-specific data, such as tax rates, to process the documents. You can put all country-specific data into a single XML file. Then you need to detect the country of origin of each document and request the corresponding data, which can then be used for searching, validating or suggesting values for fields.
You can send xPath requests to XML files from the code of any search element using the ReadFromXML and ReadSingleStringFromXML functions.
Managing User Dictionaries
To manage your user dictionaries, click More on the toolbar and select User Dictionaries. In the dialog box that opens, you can see the list of all available dictionaries. This list will also contain dictionaries imported together with a FlexiLayout if you created a skill from a FlexyLayout project or imported a FlexiLayout into your Extraction Rules activity.
To upload a new user dictionary, click Add, navigate to the file you want to upload, and click Open.
To view or edit a user dictionary, select it in the list and click Edit. Changes will only be saved after you close the editor by clicking OK.
You can also delete dictionaries and open the folder containing the selected dictionary.