edu.mit.jwi.item
Interface IWordID

All Superinterfaces:
IHasPOS, IItemID<IWord>, java.io.Serializable
All Known Implementing Classes:
WordID

public interface IWordID
extends IHasPOS, IItemID<IWord>

A unique identifier sufficient to retrieve a particular word from the Wordnet database. Consists of a synset id, sense number, and lemma.

Since:
JWI 1.0
Version:
2.4.0
Author:
Mark A. Finlayson

Method Summary
 java.lang.String getLemma()
          Returns the lemma (word root) associated with this word.
 ISynsetID getSynsetID()
          Returns the synset id object associated with this word.
 int getWordNumber()
          Returns the word number, which is a number from 1 to 255 that indicates the order this word is listed in the Wordnet data files.
 
Methods inherited from interface edu.mit.jwi.item.IHasPOS
getPOS
 

Method Detail

getSynsetID

ISynsetID getSynsetID()
Returns the synset id object associated with this word.

Returns:
the synset id for this word; never null
Since:
JWI 1.0

getWordNumber

int getWordNumber()
Returns the word number, which is a number from 1 to 255 that indicates the order this word is listed in the Wordnet data files. If the word number has not been specified, will return -1. If this method returns -1, the getLemma() method will return a non-null, non-empty string, non-whitespace string.

Returns:
an integer between 1 and 255, inclusive; or -1 if the word number has not been specified.
Since:
JWI 1.0

getLemma

java.lang.String getLemma()
Returns the lemma (word root) associated with this word. If this word id does not have a lemma specified (it was underspecified when constructed), this method will return null. If this method returns null, the getWordNumber() method will return a positive number.

Returns:
the lemma (word root) associated with this word. May return null if the lemma has not been specified.
Since:
JWI 1.0


Copyright © 2007-2013 Massachusetts Institute of Technology. All Rights Reserved.