public class BasicOntology extends AbstractOntology
Basic Ontology can be called directly for basic operations of a given ontology
Description:
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Constructor and Description |
|---|
BasicOntology(String termFilename,
Lemmatiser lemmatiser) |
| Modifier and Type | Method and Description |
|---|---|
ArrayList |
findAllTerms(Word starting)
Finds out all terms beginning with the given word
|
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.
|
String[] |
getCUI(String term)
Gets all possible concept ids the specified term has
|
String[] |
getCUI(Word starting,
Word ending)
Gets all possible concept ids the specified term has
|
String[] |
getSemanticType(String cui)
Gets all possible semantic types of the given concept
|
String[] |
getSemanticType(String[] cuis)
Gets all possible semantic types of the given concepts
|
boolean |
isTerm(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.
|
buildString, getAdjectiveTermOption, getCoordinateOption, getLemma, getLemmaOption, getNonBoundaryPunctuation, getNPPOption, getSemanticNet, getSenseDisambiguationOption, getSimilarityMetric, isBoundaryWord, isStartingWord, isUsefulForTerm, setAdjectiveTermOption, setCoordinateOption, setLemmaOption, setNonBoundaryPunctuation, setNPPOption, setSenseDisambiguationOptionpublic BasicOntology(String termFilename, Lemmatiser lemmatiser)
public String[] getSemanticType(String[] cuis)
Ontologycuis - the set of conceptspublic String[] getSemanticType(String cui)
Ontologycui - the concept idpublic String[] getCUI(String term)
Ontologyterm - the term for testingpublic String[] getCUI(Word starting, Word ending)
Ontologystarting - the starting word of the term.ending - the ending word of the term.public boolean isTerm(String term)
Ontologyterm - the term for testingpublic boolean isTerm(Word starting, Word ending)
Ontologystarting - the starting word of the term.ending - the ending word of the term.public Term findTerm(Word starting)
Ontologystarting - the starting wordpublic Term findTerm(Word start, Word end)
Ontologystart - the starting wordend - the ending wordpublic ArrayList findAllTerms(Word starting)
Ontologystarting - the starting wordCopyright © 2018 JULIE Lab, Germany. All rights reserved.