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.
SPT - Terms Match Design (SubTerm)
I. Introduction
This section describes the method used to find all matched terms in a Trie Tree from a given input. In other words, all sub-terms with synonyms from an input are found.
II. Algorithm
III. Java Classes & Method
public Vector<String> FindMatchTerms(String inTerm)
IV. Examples
word | synonym |
---|---|
dog | canine |
cat | feline |
canine | K9 |
K9 | bull dog |
Dog and cat | pets |
puppy and kitty | pets |
Terms |
---|
dog |
canine |
cat |
feline |
k9 |
bull dog |
dog and cat |
pets |
puppy and kitty |
i | curTerm | branchMatches | matchTerms |
---|---|---|---|
0 | who let dog and cat out | ||
1 | let dog and cat out | ||
2 | dog and cat out |
|
|
3 | and cat out |
| |
4 | cat out |
|
|
5 | out |
|
return matched terms | start index | end indexes: