|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--dragon.nlp.ontology.AbstractOntology
|
+--dragon.nlp.ontology.BasicOntology
Basic Ontology can be called directly for basic operations of a given ontology
Description:
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Constructor Summary | |
BasicOntology(java.lang.String termFilename,
Lemmatiser lemmatiser)
|
|
| Method Summary | |
java.util.ArrayList |
findAllTerms(Word starting)
Finds out all terms beginning with the given word |
java.util.ArrayList |
findAllTerms(Word starting,
Word ending)
Finds out all terms between the starting word and the ending word. |
Term |
findTerm(Word starting)
Finds the longest term starting with the given word. |
Term |
findTerm(Word start,
Word end)
Finds the longest term starting with given word and ending no later than the given word. |
java.lang.String[] |
getCUI(java.lang.String term)
Gets all possible concept ids the specified term has |
java.lang.String[] |
getCUI(Word starting,
Word ending)
Gets all possible concept ids the specified term has |
java.lang.String[] |
getSemanticType(java.lang.String cui)
Gets all possible semantic types of the given concept |
java.lang.String[] |
getSemanticType(java.lang.String[] cuis)
Gets all possible semantic types of the given concepts |
boolean |
isTerm(java.lang.String term)
Tests if the given term is defined in the ontology. |
boolean |
isTerm(Word starting,
Word ending)
Tests if the term specified by the starting word and the ending word is a term in the ontology. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicOntology(java.lang.String termFilename,
Lemmatiser lemmatiser)
| Method Detail |
public java.lang.String[] getSemanticType(java.lang.String[] cuis)
Ontology
cuis - the set of concepts
public java.lang.String[] getSemanticType(java.lang.String cui)
Ontology
cui - the concept id
public java.lang.String[] getCUI(java.lang.String term)
Ontology
term - the term for testing
public java.lang.String[] getCUI(Word starting,
Word ending)
Ontology
starting - the starting word of the term.ending - the ending word of the term.
public boolean isTerm(java.lang.String term)
Ontology
term - the term for testing
public boolean isTerm(Word starting,
Word ending)
Ontology
starting - the starting word of the term.ending - the ending word of the term.
public Term findTerm(Word starting)
Ontology
starting - the starting word
public Term findTerm(Word start,
Word end)
Ontology
start - the starting wordend - the ending word
public java.util.ArrayList findAllTerms(Word starting)
Ontology
starting - the starting word
public java.util.ArrayList findAllTerms(Word starting,
Word ending)
Ontology
starting - the starting wordending - the ending word
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||