public abstract class MorphoFeatureSpecification extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
MorphoFeatureSpecification.MorphoFeatureType |
Modifier and Type | Field and Description |
---|---|
protected Set<MorphoFeatureSpecification.MorphoFeatureType> |
activeFeatures |
static String |
LEMMA_MARK |
static String |
MORPHO_MARK |
static String |
NO_ANALYSIS |
Constructor and Description |
---|
MorphoFeatureSpecification() |
Modifier and Type | Method and Description |
---|---|
void |
activate(MorphoFeatureSpecification.MorphoFeatureType feat) |
abstract List<String> |
getValues(MorphoFeatureSpecification.MorphoFeatureType feat) |
boolean |
isActive(MorphoFeatureSpecification.MorphoFeatureType feat) |
static Pair<String,String> |
splitMorphString(String word,
String morphStr)
Returns the lemma as pair.first() and the morph analysis as pair.second().
|
abstract MorphoFeatures |
strToFeatures(String spec) |
String |
toString() |
public static final String MORPHO_MARK
public static final String LEMMA_MARK
public static final String NO_ANALYSIS
protected final Set<MorphoFeatureSpecification.MorphoFeatureType> activeFeatures
public void activate(MorphoFeatureSpecification.MorphoFeatureType feat)
public boolean isActive(MorphoFeatureSpecification.MorphoFeatureType feat)
public abstract List<String> getValues(MorphoFeatureSpecification.MorphoFeatureType feat)
public abstract MorphoFeatures strToFeatures(String spec)
public static Pair<String,String> splitMorphString(String word, String morphStr)