|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.wordnet.LexicalRelationImpl
public class LexicalRelationImpl
Represents WordNet lexical relation. implrments LexicalRelation
Field Summary |
---|
Fields inherited from interface gate.wordnet.Relation |
---|
REL_ANTONYM, REL_ATTRIBUTE, REL_CAUSE, REL_DERIVED_FROM_ADJECTIVE, REL_ENTAILMENT, REL_HYPERNYM, REL_HYPONYM, REL_MEMBER_HOLONYM, REL_MEMBER_MERONYM, REL_PART_HOLONYM, REL_PART_MERONYM, REL_PARTICIPLE_OF_VERB, REL_PERTAINYM, REL_SEE_ALSO, REL_SIMILAR_TO, REL_SUBSTANCE_HOLONYM, REL_SUBSTANCE_MERONYM, REL_VERB_GROUP |
Constructor Summary | |
---|---|
LexicalRelationImpl(int _type,
WordSense _src,
WordSense _target)
|
Method Summary | |
---|---|
int |
getInverseType()
returns the inverse relation (Hyponym <-> Hypernym, etc) |
String |
getLabel()
returns a label for the relation, e.g. |
WordSense |
getSource()
returns the source (WordSense) of this lexical relation |
String |
getSymbol()
returns a symbol for the relation, e.g |
WordSense |
getTarget()
returns the target (WordSense) of this lexical relation |
int |
getType()
returns the type of the relation - one of REL_XXX |
boolean |
isApplicableTo(int pos)
checks if the relation is applicab;le to specific POS - see REL_XXX comments |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface gate.wordnet.Relation |
---|
getInverseType, getLabel, getSymbol, getType, isApplicableTo |
Constructor Detail |
---|
public LexicalRelationImpl(int _type, WordSense _src, WordSense _target)
Method Detail |
---|
public WordSense getSource()
getSource
in interface LexicalRelation
public WordSense getTarget()
getTarget
in interface LexicalRelation
public int getType()
getType
in interface Relation
public String getSymbol()
getSymbol
in interface Relation
public String getLabel()
getLabel
in interface Relation
public int getInverseType()
getInverseType
in interface Relation
public boolean isApplicableTo(int pos)
isApplicableTo
in interface Relation
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |