|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--dragon.nlp.ontology.AbstractOntology
The class implements all the basic functions related with ontology
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Constructor Summary | |
AbstractOntology(Lemmatiser lemmatiser)
|
|
| Method Summary | |
protected java.lang.String |
buildString(Word start,
Word end,
boolean useLemma)
|
boolean |
getAdjectiveTermOption()
Gets the option whether adjective term is allowed. |
boolean |
getCoordinateOption()
Gets the option whether a term can contain a conjunction. |
protected java.lang.String |
getLemma(Word word)
|
boolean |
getLemmaOption()
Gets the option of using the base form of the word when matching a term. |
java.lang.String |
getNonBoundaryPunctuation()
|
boolean |
getNPPOption()
Gets the option whether NPP term is allowed. |
SemanticNet |
getSemanticNet()
Gets the semantic network of the ontology |
boolean |
getSenseDisambiguationOption()
Gets the option disambiguating the sense of extracted terms. |
SimilarityMetric |
getSimilarityMetric()
Get the similarity metric of the ontology |
protected boolean |
isBoundaryWord(Word curWord)
|
boolean |
isStartingWord(Word cur)
Tests if the current word could be a starting word of a term. |
protected boolean |
isUsefulForTerm(Word word)
|
void |
setAdjectiveTermOption(boolean enabled)
Sets the option whether adjective term is allowed. |
void |
setCoordinateOption(boolean enabled)
Sets the option whether a term can contain a conjunction. |
void |
setLemmaOption(boolean enabled)
Sets the option of using the base form of the word when matching a term. |
void |
setNonBoundaryPunctuation(java.lang.String punctuations)
|
void |
setNPPOption(boolean enabled)
Sets the option whether NPP term is allowed. |
void |
setSenseDisambiguationOption(boolean enabled)
Sets the option disambiguating the sense of extracted terms. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface dragon.nlp.ontology.Ontology |
findAllTerms, findAllTerms, findTerm, findTerm, getCUI, getCUI, getSemanticType, getSemanticType, isTerm, isTerm |
| Constructor Detail |
public AbstractOntology(Lemmatiser lemmatiser)
| Method Detail |
public SemanticNet getSemanticNet()
Ontology
getSemanticNet in interface Ontologypublic SimilarityMetric getSimilarityMetric()
Ontology
getSimilarityMetric in interface Ontologypublic void setNonBoundaryPunctuation(java.lang.String punctuations)
public java.lang.String getNonBoundaryPunctuation()
public void setLemmaOption(boolean enabled)
Ontology
setLemmaOption in interface Ontologyenabled - the option of using the base form of the word when matching a term.public boolean getLemmaOption()
Ontology
getLemmaOption in interface Ontologypublic void setSenseDisambiguationOption(boolean enabled)
Ontology
setSenseDisambiguationOption in interface Ontologyenabled - the option disambiguating the sense of extracted terms.public boolean getSenseDisambiguationOption()
Ontology
getSenseDisambiguationOption in interface Ontologypublic void setAdjectiveTermOption(boolean enabled)
Ontology
setAdjectiveTermOption in interface Ontologyenabled - whether adjective term is allowed.public boolean getAdjectiveTermOption()
Ontology
getAdjectiveTermOption in interface Ontologypublic void setNPPOption(boolean enabled)
Ontology
setNPPOption in interface Ontologyenabled - the option whether NPP term is allowed.public boolean getNPPOption()
Ontology
getNPPOption in interface Ontologypublic void setCoordinateOption(boolean enabled)
Ontology
setCoordinateOption in interface Ontologyenabled - the option whether a term can contain a conjunctionpublic boolean getCoordinateOption()
Ontology
getCoordinateOption in interface Ontologypublic boolean isStartingWord(Word cur)
Ontology
isStartingWord in interface Ontologycur - the current word
protected boolean isBoundaryWord(Word curWord)
protected java.lang.String getLemma(Word word)
protected java.lang.String buildString(Word start,
Word end,
boolean useLemma)
protected boolean isUsefulForTerm(Word word)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||