org.finetracker
Class Word

java.lang.Object
  extended by org.finetracker.Word

public class Word
extends java.lang.Object

A word as read from the lexicon file. It is represented by a lexical string, and by multiple vectors representing the articulations.

Author:
Frank Kusters

Constructor Summary
Word(java.lang.String lexicalWord, java.util.List<FeatureVector> featureVectorList)
          Construct a Word object.
 
Method Summary
 FeatureVector getFeatureVector(int id)
          Get a particular FeatureVector.
 java.lang.String getLexicalWord()
           
 boolean isLastFeatureVector(int id)
          Check if the FeatureVector at the specified id is the last FeatureVector of this Word.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Word

public Word(java.lang.String lexicalWord,
            java.util.List<FeatureVector> featureVectorList)
Construct a Word object.

Parameters:
lexicalWord - the lexical word
featureVectorList - the feature vectors
Method Detail

getFeatureVector

public FeatureVector getFeatureVector(int id)
Get a particular FeatureVector.

Parameters:
id - the ID of the FeatureVector to retrieve.
Returns:
the FeatureVector

isLastFeatureVector

public boolean isLastFeatureVector(int id)
Check if the FeatureVector at the specified id is the last FeatureVector of this Word.

Parameters:
id - the id of the FeatureVector to check
Returns:
true if this is the last FeatureVector, false if not

getLexicalWord

public java.lang.String getLexicalWord()
Returns:
the lexicalWord