public class Phrase extends Object implements Concept, Comparable, SortedElement
Data structure for phrase
:
Copyright: Copyright (c) 2003
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
static int |
NAME_ASIS |
static int |
NAME_LEMMA |
TYPE_PHRASE, TYPE_TERM, TYPE_TOKEN| Constructor and Description |
|---|
Phrase(Word word) |
Phrase(Word starting,
Word ending) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFrequency(int inc) |
int |
compareTo(Object obj) |
int |
compareTo(Phrase term) |
Concept |
copy() |
boolean |
equalTo(Concept concept) |
int |
getConceptType()
Return 1 for ontological term, 2 for multiword phrase, and 3 for token
|
Word |
getEndingWord()
Gets the last word of the concept.
|
String |
getEntryID() |
int |
getFrequency() |
int |
getIndex() |
Object |
getMemo() |
String |
getName() |
String |
getSemanticType() |
Word |
getStartingWord()
Gets the first word of the concept.
|
double |
getWeight() |
int |
getWordNum() |
boolean |
isSubConcept() |
void |
setFrequency(int freq) |
void |
setIndex(int index) |
void |
setMemo(Object memo) |
static void |
setNameMode(int mode) |
void |
setSubConcept(boolean subterm) |
void |
setWeight(double weight) |
String |
toLemmaString() |
String |
toString() |
public static final int NAME_ASIS
public static final int NAME_LEMMA
public int getConceptType()
ConceptgetConceptType in interface Conceptpublic static void setNameMode(int mode)
public int compareTo(Object obj)
compareTo in interface Comparablepublic int compareTo(Phrase 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 void setWeight(double weight)
setWeight in interface WeightSortablesetWeight in interface Conceptpublic double getWeight()
getWeight in interface WeightSortablegetWeight in interface Conceptpublic Word getStartingWord()
ConceptgetStartingWord in interface Conceptpublic Word getEndingWord()
ConceptgetEndingWord in interface Conceptpublic String toLemmaString()
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 ConceptCopyright © 2018 JULIE Lab, Germany. All rights reserved.