gate.wordnet
Interface Relation

All Known Subinterfaces:
LexicalRelation, SemanticRelation

public interface Relation

Represents WordNet relation.


Field Summary
static int REL_ANTONYM
          !
static int REL_ATTRIBUTE
          = Attribute (noun,adjective)
static int REL_CAUSE
          > Cause (verb)
static int REL_DERIVED_FROM_ADJECTIVE
          \ Derived from adjective (adverb)
static int REL_ENTAILMENT
          Entailment (verb)
static int REL_HYPERNYM
          Hypernym (noun,verb)
static int REL_HYPONYM
          ~ Hyponym (noun,verb)
static int REL_MEMBER_HOLONYM
          #m Member holonym (noun)
static int REL_MEMBER_MERONYM
          %m Member meronym (noun)
static int REL_PART_HOLONYM
          #p Part holonym (noun)
static int REL_PART_MERONYM
          %p Part meronym (noun)
static int REL_PARTICIPLE_OF_VERB
          < Participle of verb (adjective)
static int REL_PERTAINYM
          \ Pertainym - pertains to noun (adjective)
static int REL_SEE_ALSO
          ^ Also see (verb,adjective)
static int REL_SIMILAR_TO
          & Similar to (adjective)
static int REL_SUBSTANCE_HOLONYM
          #s Substance holonym (noun)
static int REL_SUBSTANCE_MERONYM
          %s Substance meronym (noun)
static int REL_VERB_GROUP
          $ Verb Group (verb)
 
Method Summary
 int getInverseType()
          returns the inverse relation (Hyponym <-> Hypernym, etc)
 String getLabel()
          returns a label for the relation, e.g.
 String getSymbol()
          returns a symbol for the relation, e.g
 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
 

Field Detail

REL_ANTONYM

static final int REL_ANTONYM
! Antonym (noun,verb,adjective,adverb)

See Also:
Constant Field Values

REL_HYPERNYM

static final int REL_HYPERNYM
Hypernym (noun,verb)

See Also:
Constant Field Values

REL_HYPONYM

static final int REL_HYPONYM
~ Hyponym (noun,verb)

See Also:
Constant Field Values

REL_MEMBER_HOLONYM

static final int REL_MEMBER_HOLONYM
#m Member holonym (noun)

See Also:
Constant Field Values

REL_SUBSTANCE_HOLONYM

static final int REL_SUBSTANCE_HOLONYM
#s Substance holonym (noun)

See Also:
Constant Field Values

REL_PART_HOLONYM

static final int REL_PART_HOLONYM
#p Part holonym (noun)

See Also:
Constant Field Values

REL_MEMBER_MERONYM

static final int REL_MEMBER_MERONYM
%m Member meronym (noun)

See Also:
Constant Field Values

REL_SUBSTANCE_MERONYM

static final int REL_SUBSTANCE_MERONYM
%s Substance meronym (noun)

See Also:
Constant Field Values

REL_PART_MERONYM

static final int REL_PART_MERONYM
%p Part meronym (noun)

See Also:
Constant Field Values

REL_ATTRIBUTE

static final int REL_ATTRIBUTE
= Attribute (noun,adjective)

See Also:
Constant Field Values

REL_ENTAILMENT

static final int REL_ENTAILMENT
Entailment (verb)

See Also:
Constant Field Values

REL_CAUSE

static final int REL_CAUSE
> Cause (verb)

See Also:
Constant Field Values

REL_SEE_ALSO

static final int REL_SEE_ALSO
^ Also see (verb,adjective)

See Also:
Constant Field Values

REL_VERB_GROUP

static final int REL_VERB_GROUP
$ Verb Group (verb)

See Also:
Constant Field Values

REL_PARTICIPLE_OF_VERB

static final int REL_PARTICIPLE_OF_VERB
< Participle of verb (adjective)

See Also:
Constant Field Values

REL_SIMILAR_TO

static final int REL_SIMILAR_TO
& Similar to (adjective)

See Also:
Constant Field Values

REL_PERTAINYM

static final int REL_PERTAINYM
\ Pertainym - pertains to noun (adjective)

See Also:
Constant Field Values

REL_DERIVED_FROM_ADJECTIVE

static final int REL_DERIVED_FROM_ADJECTIVE
\ Derived from adjective (adverb)

See Also:
Constant Field Values
Method Detail

getType

int getType()
returns the type of the relation - one of REL_XXX


getInverseType

int getInverseType()
returns the inverse relation (Hyponym <-> Hypernym, etc)


getLabel

String getLabel()
returns a label for the relation, e.g. "HYPERNYM"


getSymbol

String getSymbol()
returns a symbol for the relation, e.g. "@"


isApplicableTo

boolean isApplicableTo(int pos)
checks if the relation is applicab;le to specific POS - see REL_XXX comments