public class Term extends IReferable implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Term.Sentiment
The term layer represents sentiment information which is context-independent and that can be found in a sentiment lexicon.
|
Modifier and Type | Field and Description |
---|---|
static Comparator<Term> |
OFFSET_COMPARATOR |
compareTo
public static final Comparator<Term> OFFSET_COMPARATOR
public String toString(boolean trimmed)
public Map<String,Collection<String>> getFeatures()
public void setFeatures(Map<String,Collection<String>> features)
public boolean hasFeatures()
public String getUpos()
public void setUpos(String upos)
public boolean hasUpos()
public String getSupersenseTag()
public void setSupersenseTag(String supersenseTag)
public boolean hasSupersenseTag()
public void setWordnetSense(String wordnetSense)
public String getWordnetSense()
public boolean hasWordnetSense()
public String getBBNTag()
public void setBBNTag(String bbnTag)
public boolean hasBBNTag()
public String getId()
getId
in interface TLinkReferable
public boolean hasType()
public String getType()
public void setType(String type)
public boolean hasLemma()
public String getLemma()
public void setLemma(String lemma)
public boolean hasPos()
public String getPos()
public void setPos(String pos)
public boolean hasMorphofeat()
public String getMorphofeat()
public void setMorphofeat(String morphofeat)
public boolean hasCase()
public String getCase()
public void setCase(String termcase)
public String getForm()
public String getStr()
public boolean hasHead()
public Term getHead()
public Term.Sentiment createSentiment()
public boolean hasSentiment()
public Term.Sentiment getSentiment()
public void setSentiment(Term.Sentiment sentiment)
public void addComponent(Term component)
public void addComponent(Term component, boolean isHead)
public WF getHeadWF()
public void addWF(WF wf)
public void addWF(WF wf, boolean isHead)
public Integer getSent()
public List<ExternalRef> getExternalRefs()
public void addExternalRef(ExternalRef externalRef)
public void addExternalRefs(List<ExternalRef> externalRefs)
public void setCompound(Term compound)
public Term getCompound()
public int getOffset()
public int getLength()
Copyright © 2016–2020 FBK. All rights reserved.