public class CapitalTypeFeatureFunction extends Object implements FeatureFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
CapitalTypeFeatureFunction.CapitalType |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_NAME |
| Constructor and Description |
|---|
CapitalTypeFeatureFunction() |
| Modifier and Type | Method and Description |
|---|---|
List<Feature> |
apply(Feature feature)
If the value of the feature is a StringValue and is determined to be one of ALL_UPPERCASE,
ALL_LOWERCASE, INITIAL_UPPERCASE, or MIXED_CASE, then a new feature containing one of those
four values is returned.
|
public static final String DEFAULT_NAME
public CapitalTypeFeatureFunction()
public List<Feature> apply(Feature feature)
This method was inspired by CapitalizationTypeTagger.py written by Steven Bethard.
Copyright © 2014. All rights reserved.