edu.stanford.nlp.international.morph
Class MorphoFeatureSpecification

java.lang.Object
  extended by edu.stanford.nlp.international.morph.MorphoFeatureSpecification
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ArabicMorphoFeatureSpecification, FrenchMorphoFeatureSpecification

public abstract class MorphoFeatureSpecification
extends java.lang.Object
implements java.io.Serializable

Morphological feature specification for surface forms in a given language. Currently supported feature names are the values of MorphFeatureType.

Author:
Spence Green
See Also:
Serialized Form

Nested Class Summary
static class MorphoFeatureSpecification.MorphoFeatureType
           
 
Field Summary
protected  java.util.Set<MorphoFeatureSpecification.MorphoFeatureType> activeFeatures
           
static java.lang.String LEMMA_MARK
           
static java.lang.String MORPHO_MARK
           
static java.lang.String NO_ANALYSIS
           
 
Constructor Summary
MorphoFeatureSpecification()
           
 
Method Summary
 void activate(MorphoFeatureSpecification.MorphoFeatureType feat)
           
abstract  java.util.List<java.lang.String> getValues(MorphoFeatureSpecification.MorphoFeatureType feat)
           
 boolean isActive(MorphoFeatureSpecification.MorphoFeatureType feat)
           
static Pair<java.lang.String,java.lang.String> splitMorphString(java.lang.String word, java.lang.String morphStr)
          Returns the lemma as pair.first() and the morph analysis as pair.second().
abstract  MorphoFeatures strToFeatures(java.lang.String spec)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MORPHO_MARK

public static final java.lang.String MORPHO_MARK
See Also:
Constant Field Values

LEMMA_MARK

public static final java.lang.String LEMMA_MARK
See Also:
Constant Field Values

NO_ANALYSIS

public static final java.lang.String NO_ANALYSIS
See Also:
Constant Field Values

activeFeatures

protected final java.util.Set<MorphoFeatureSpecification.MorphoFeatureType> activeFeatures
Constructor Detail

MorphoFeatureSpecification

public MorphoFeatureSpecification()
Method Detail

activate

public void activate(MorphoFeatureSpecification.MorphoFeatureType feat)

isActive

public boolean isActive(MorphoFeatureSpecification.MorphoFeatureType feat)

getValues

public abstract java.util.List<java.lang.String> getValues(MorphoFeatureSpecification.MorphoFeatureType feat)

strToFeatures

public abstract MorphoFeatures strToFeatures(java.lang.String spec)

splitMorphString

public static Pair<java.lang.String,java.lang.String> splitMorphString(java.lang.String word,
                                                                       java.lang.String morphStr)
Returns the lemma as pair.first() and the morph analysis as pair.second().


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Stanford NLP Group