public abstract class AbstractOntology extends Object implements Ontology
The class implements all the basic functions related with ontology
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Constructor and Description |
|---|
AbstractOntology(Lemmatiser lemmatiser) |
| Modifier and Type | Method and Description |
|---|---|
protected 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 String |
getLemma(Word word) |
boolean |
getLemmaOption()
Gets the option of using the base form of the word when matching a term.
|
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(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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindAllTerms, findAllTerms, findTerm, findTerm, getCUI, getCUI, getSemanticType, getSemanticType, isTerm, isTermpublic AbstractOntology(Lemmatiser lemmatiser)
public SemanticNet getSemanticNet()
OntologygetSemanticNet in interface Ontologypublic SimilarityMetric getSimilarityMetric()
OntologygetSimilarityMetric in interface Ontologypublic void setNonBoundaryPunctuation(String punctuations)
public String getNonBoundaryPunctuation()
public void setLemmaOption(boolean enabled)
OntologysetLemmaOption in interface Ontologyenabled - the option of using the base form of the word when matching a term.public boolean getLemmaOption()
OntologygetLemmaOption in interface Ontologypublic void setSenseDisambiguationOption(boolean enabled)
OntologysetSenseDisambiguationOption in interface Ontologyenabled - the option disambiguating the sense of extracted terms.public boolean getSenseDisambiguationOption()
OntologygetSenseDisambiguationOption in interface Ontologypublic void setAdjectiveTermOption(boolean enabled)
OntologysetAdjectiveTermOption in interface Ontologyenabled - whether adjective term is allowed.public boolean getAdjectiveTermOption()
OntologygetAdjectiveTermOption in interface Ontologypublic void setNPPOption(boolean enabled)
OntologysetNPPOption in interface Ontologyenabled - the option whether NPP term is allowed.public boolean getNPPOption()
OntologygetNPPOption in interface Ontologypublic void setCoordinateOption(boolean enabled)
OntologysetCoordinateOption in interface Ontologyenabled - the option whether a term can contain a conjunctionpublic boolean getCoordinateOption()
OntologygetCoordinateOption in interface Ontologypublic boolean isStartingWord(Word cur)
OntologyisStartingWord in interface Ontologycur - the current wordprotected boolean isBoundaryWord(Word curWord)
protected boolean isUsefulForTerm(Word word)
Copyright © 2018 JULIE Lab, Germany. All rights reserved.