public abstract class MorphoFeatureSpecification
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
MorphoFeatureSpecification.MorphoFeatureType |
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
MorphoFeatureSpecification() |
Modifier and Type | Method and Description |
---|---|
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() |
public static final java.lang.String MORPHO_MARK
public static final java.lang.String LEMMA_MARK
public static final java.lang.String NO_ANALYSIS
protected final java.util.Set<MorphoFeatureSpecification.MorphoFeatureType> activeFeatures
public void activate(MorphoFeatureSpecification.MorphoFeatureType feat)
public boolean isActive(MorphoFeatureSpecification.MorphoFeatureType feat)
public abstract java.util.List<java.lang.String> getValues(MorphoFeatureSpecification.MorphoFeatureType feat)
public abstract MorphoFeatures strToFeatures(java.lang.String spec)
public static Pair<java.lang.String,java.lang.String> splitMorphString(java.lang.String word, java.lang.String morphStr)
public java.lang.String toString()
toString
in class java.lang.Object