This method adds a group of words to the cache dictionary. The cache dictionary is a small dictionary (about a hundred words) which can be changed easily during processing. The cache dictionaries can be used when it is possible to select a dictionary more precisely, if you found new information about the document during processing. If any of the words you are adding already exists in the dictionary, no duplicate will be created, but the weight of this word will be equal to the maximum of the weight specified in dictionary and the weight you pass in call to this method.Documentation Index
Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
Use this file to discover all available pages before exploring further.
Syntax
C++
C#
Visual Basic .NET
Parameters
params [in] The RecognizerParams object that stores parameters of page processing. Words [in] This parameter of the StringsCollection type contains the collection of the newly added words. Weights [in] This parameter of the IntsCollection type that must have the same size as the collection of words, is used to pass information about the weights for the newly added words. The weights for the words must be in the range from 1 to 100. You may pass 0 for this parameter, in which case all the words will be included in the dictionary with default weights of 100. The weight assigned to the word in the dictionary may have a set of discrete values only. The value passed in this parameter is rounded to the nearest of the discrete set of values.Return values
This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.Remarks
- For more efficient operation we recommend that you pre-sort the added words in alphabetical order.
- For adding one word into the cache dictionary, you can use the AddWordToCacheDictionary method.
