edu.stanford.nlp.international.morph
Class MorphoFeatureSpecification
java.lang.Object
edu.stanford.nlp.international.morph.MorphoFeatureSpecification
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- ArabicMorphoFeatureSpecification, FrenchMorphoFeatureSpecification
public abstract class MorphoFeatureSpecification
- extends Object
- implements 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
MORPHO_MARK
public static final String MORPHO_MARK
- See Also:
- Constant Field Values
LEMMA_MARK
public static final String LEMMA_MARK
- See Also:
- Constant Field Values
NO_ANALYSIS
public static final String NO_ANALYSIS
- See Also:
- Constant Field Values
activeFeatures
protected final Set<MorphoFeatureSpecification.MorphoFeatureType> activeFeatures
MorphoFeatureSpecification
public MorphoFeatureSpecification()
activate
public void activate(MorphoFeatureSpecification.MorphoFeatureType feat)
isActive
public boolean isActive(MorphoFeatureSpecification.MorphoFeatureType feat)
getValues
public abstract List<String> getValues(MorphoFeatureSpecification.MorphoFeatureType feat)
strToFeatures
public abstract MorphoFeatures strToFeatures(String spec)
splitMorphString
public static Pair<String,String> splitMorphString(String word,
String morphStr)
- Returns the lemma as pair.first() and the morph analysis as pair.second().
- Parameters:
morphStr
-
- Returns:
toString
public String toString()
- Overrides:
toString
in class Object
Stanford NLP Group