protected static class NERFeatureFactory.FeatureCollector extends Object
| Constructor and Description |
|---|
FeatureCollector(Set<String> output)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add()
End the current feature, and add with suffixes.
|
void |
add(String feat)
Add a feature (+ suffix).
|
NERFeatureFactory.FeatureCollector |
append(char c)
Append to the current feature name
|
NERFeatureFactory.FeatureCollector |
append(String s)
Append to the current feature name
|
NERFeatureFactory.FeatureCollector |
build()
Begin a new feature construction.
|
NERFeatureFactory.FeatureCollector |
dash()
Append '-' to the current feature name
|
void |
setDomain(String domain)
Additional suffix domain.
|
NERFeatureFactory.FeatureCollector |
setSuffix(String suffix)
Set the suffix to append to each token (separated by "|")
|
public NERFeatureFactory.FeatureCollector setSuffix(String suffix)
suffix - Suffix to usepublic void setDomain(String domain)
domain - Suffix domainpublic NERFeatureFactory.FeatureCollector build()
public NERFeatureFactory.FeatureCollector append(String s)
s - String fragmentpublic NERFeatureFactory.FeatureCollector append(char c)
c - Characterpublic NERFeatureFactory.FeatureCollector dash()
public void add()
public void add(String feat)
feat - Feature