Grammatical Dictionary SDK is shipped with all necessary means to extend the dictionary:
1. Dictionary compiler (.../exe/compiler)
2. Basic Russian dictionary (.../basedic-linux)
3. Sample text files with word entry definitions (.../dictionary.src/userdic-entries.sol)
4. Shell script which loads the basic dictionary, parses the word entry definition file, merges it all and stores new dictionary datafiles in .../bin-linux.
Only two steps are required to get an extended dictionary.
First, open the lexicon definition file .../dictionary.src/userdic/userdic-entries.sol as utf-8 plain text. Copy the definition of noun, verb, adjective, adverb or adverbial participle, modify it and save the file.
Second, run the user dictionary build script .../scripts/russian-userdic.sh. It starts the merging of basic dictionary and new word entry definitions:
If successful, the script saves the new dictionary in .../bin-linux or .../bin-linux64 folder.
Finally, you can test new dictionary using dictionary lookup utility. Run .../exe/lexicon or .../exe64/lexicon, choose [1] to enter the lexicon lookup mode, type any wordform defined in your .../dictionary.src/userdic/userdic-entries.sol and look at the results:
Grammatical dictionary compilation (Russian)
Dictionary extension and modification techniques (Russian)
Grammatical dictionary configuration file
© Mental Computing 2009
|
|
changed 05-Feb-12 |