Because of a lapse in government funding, the information on this website may not be up to date, transactions submitted via the website may not be processed, and the agency may not be able to respond to inquiries until appropriations are enacted. The NIH Clinical Center (the research hospital of NIH) is open. For more details about its operating status, please visit cc.nih.gov. Updates regarding government operating status and resumption of normal operations can be found at OPM.gov.
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.