public class Term extends Object implements Concept, Comparable, SortedElement
Term is designed for Universal Medical Langauge System (UMLS) medical concept that can stores n-grams and its semantic and statistical information
Copyright: Copyright (c) 2003
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
static int |
NAME_ASIS |
static int |
NAME_LEMMA |
static int |
NAME_NORM |
TYPE_PHRASE, TYPE_TERM, TYPE_TOKEN| Constructor and Description |
|---|
Term(Word word) |
Term(Word starting,
Word ending) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(Term attr) |
void |
addFrequency(int inc) |
int |
compareTo(Object obj) |
int |
compareTo(Term term) |
Concept |
copy() |
boolean |
equalTo(Concept concept) |
Term |
getAttribute(int index) |
int |
getAttributeNum() |
int |
getAttributeOccurrence() |
String[] |
getCandidateCUI() |
String |
getCandidateCUI(int index) |
int |
getCandidateCUINum() |
String[] |
getCandidateTUI() |
String |
getCandidateTUI(int index) |
int |
getCandidateTUINum() |
int |
getConceptType()
Return 1 for ontological term, 2 for multiword phrase, and 3 for token
|
String |
getCUI() |
Word |
getEndingWord()
Gets the last word of the concept.
|
String |
getEntryID() |
int |
getFrequency() |
int |
getIndex() |
Object |
getMemo() |
String |
getName() |
Term |
getReferral() |
String |
getSemanticType() |
int |
getSenseNum() |
Word |
getStartingWord()
Gets the first word of the concept.
|
String |
getTUI() |
double |
getWeight() |
int |
getWordNum() |
int |
hashCode() |
boolean |
isExpired() |
boolean |
isPredicted() |
boolean |
isSubConcept() |
Word |
searchIn(Sentence sent)
Search the first occurrence of the current term in the sentence
|
Word |
searchIn(Sentence sent,
Word start)
Search the first occurrence of the current term in the sentence after the word specified
|
void |
setCandidateCUI(String[] can_cui) |
void |
setCandidateTUI(String[] can_tui) |
void |
setCUI(String cui) |
void |
setExpired(boolean expired) |
void |
setFrequency(int freq) |
void |
setIndex(int index) |
void |
setMemo(Object memo) |
static void |
setNameMode(int mode) |
void |
setNormalizedString(String normalizedStr) |
void |
setPredictedTerm(boolean predicted) |
void |
setReferral(Term referral) |
void |
setSubConcept(boolean subterm) |
void |
setTUI(String tui) |
void |
setWeight(double weight) |
String |
toLemmaString() |
String |
toNormalizedString() |
String |
toString() |
public static final int NAME_ASIS
public static final int NAME_LEMMA
public static final int NAME_NORM
public int getConceptType()
ConceptgetConceptType in interface Conceptpublic static void setNameMode(int mode)
public int compareTo(Object obj)
compareTo in interface Comparablepublic int compareTo(Term term)
public boolean isSubConcept()
isSubConcept in interface Conceptpublic void setSubConcept(boolean subterm)
public String getName()
public String getEntryID()
getEntryID in interface Conceptpublic String getSemanticType()
getSemanticType in interface Conceptpublic int getIndex()
getIndex in interface IndexSortablegetIndex in interface Conceptpublic void setIndex(int index)
setIndex in interface IndexSortablesetIndex in interface Conceptpublic boolean isPredicted()
public void setPredictedTerm(boolean predicted)
public boolean isExpired()
public void setExpired(boolean expired)
public void setWeight(double weight)
setWeight in interface WeightSortablesetWeight in interface Conceptpublic double getWeight()
getWeight in interface WeightSortablegetWeight in interface Conceptpublic String[] getCandidateCUI()
public String getCandidateCUI(int index)
public int getCandidateCUINum()
public void setCandidateCUI(String[] can_cui)
public String getCUI()
public void setCUI(String cui)
public int getSenseNum()
public String[] getCandidateTUI()
public String getCandidateTUI(int index)
public int getCandidateTUINum()
public void setCandidateTUI(String[] can_tui)
public String getTUI()
public void setTUI(String tui)
public Word getStartingWord()
ConceptgetStartingWord in interface Conceptpublic Word getEndingWord()
ConceptgetEndingWord in interface Conceptpublic Term getReferral()
public void setReferral(Term referral)
public String toLemmaString()
public void setNormalizedString(String normalizedStr)
public String toNormalizedString()
public int getWordNum()
public void addFrequency(int inc)
addFrequency in interface Conceptpublic int getFrequency()
getFrequency in interface FrequencySortablegetFrequency in interface Conceptpublic void setFrequency(int freq)
setFrequency in interface FrequencySortablesetFrequency in interface Conceptpublic int getAttributeNum()
public int getAttributeOccurrence()
public Term getAttribute(int index)
public void addAttribute(Term attr)
public Word searchIn(Sentence sent)
sent - the sentence to be searchedpublic Word searchIn(Sentence sent, Word start)
sent - the sentence to be searchedstart - the word from which the search startCopyright © 2018 JULIE Lab, Germany. All rights reserved.