edu.mit.jverbnet.data
Interface IWordnetKey

All Superinterfaces:
java.lang.Comparable<IWordnetKey>
All Known Implementing Classes:
WordnetKey

public interface IWordnetKey
extends java.lang.Comparable<IWordnetKey>

The wordnet type is identical to the wordnet sense key, which is a unique string that identifies a Wordnet word. The string representation is:

 lemma%ss_type:lex_filenum:lex_id
 
In verbnet, ss_type is always 2 (meaning it is a verb)

Since:
JVerbnet 1.0.0
Version:
1.2.0
Author:
Mark A. Finlayson

Method Summary
 java.lang.String getLemma()
          The lemma (root form) of the word indicated by wordnet type.
 int getLexicalFileNumber()
          Returns the lexical file number associated with this wordnet type.
 int getLexicalID()
          Returns the lexical id for this sense key, which is a non-negative integer.
 int getSynsetType()
          Returns the synset number for the type, which will usually be 2 for all verbnet types.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getLemma

java.lang.String getLemma()
The lemma (root form) of the word indicated by wordnet type. The returned lemma will not be null, empty, or all whitespace.

Returns:
the lemma of the type
Since:
JVerbnet 1.0.0

getSynsetType

int getSynsetType()
Returns the synset number for the type, which will usually be 2 for all verbnet types. In general, the synset type is a one digit decimal integer representing the synset type for the sense.
 1=NOUN
 2=VERB
 3=ADJECTIVE
 4=ADVERB
 5=ADJECTIVE SATELLITE
 

Returns:
the synset type, 2
Since:
JVerbnet 1.0.0

getLexicalFileNumber

int getLexicalFileNumber()
Returns the lexical file number associated with this wordnet type.

Returns:
the lexical file number associated with this wordnet type
Since:
JVerbnet 1.0.0

getLexicalID

int getLexicalID()
Returns the lexical id for this sense key, which is a non-negative integer.

Returns:
the non-negative lexical id for this sense key
Since:
JVerbnet 1.0.0


Copyright © 2012 ${project.organization.name}. All Rights Reserved.