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.
Sub-Term APIs - Term in Corpus Design
I. Introduction
This section describes the sub-term methods used to find a term in a corpus tree.
II. Algorithm
III. Java Classes & Methods
public static boolean FindTerm(String inTerm, Corpus corpus)
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 | curWordNode | curNode | curChilds.contains(curWordNode) | END_NODE | findFlag |
---|---|---|---|---|---|
0 | dog | ROOT | true | false | false |
1 | and | dog | true | false | false |
2 | cat | and | true | false | false |
3 | $_END | cat | true | true | true |