Application: Synonym Permutation Tool
I. Objective
To replace words/terms with synonyms in a free text.
This example shows a simple application to
For example, if the synonyms list are:
dog | canine |
cat | feline |
canine | K9 |
K9 | bull dog |
dog and cat | pets |
Input term:
Output results:
Please refer to design documents for details.
II. Pre-Requirements
None.
III. Source Code
IV. Compile
shell>cd ${SynonymPermutationTool} shell>ant
V. Run & Results
shell> cd bin shell> spt ====== Synonym Permutation Generation ====== - debug flag: false - synonyms file: /export/home/lu/Development/LVG/Components/Applications/SynonymPermutationTool/data/Spt/test.data - recursive flag: true - recursive level: 1 ============================================ Please input a term (Quit = q) > dog and cat -- Read through 16 lines and found 3 pairs of synonym. ----- Synonyms permutation results ------ dog and cat dog and feline canine and cat canine and feline k9 and cat k9 and feline pets
VI. Application Package Download
The whole package, SynonymPermutationTool.tgz can be down here.