public final class BasicFeatureExtractor extends Object implements SequenceFeatureExtractor<String>
| Constructor and Description |
|---|
BasicFeatureExtractor() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
computeFeatures(List<String> words,
int previousLabel,
int position)
Compute a feature for the given sequence (the complete list words).
|
public List<String> computeFeatures(List<String> words, int previousLabel, int position)
SequenceFeatureExtractorcomputeFeatures in interface SequenceFeatureExtractor<String>words - all words in that sequence.previousLabel - the previous label.position - the current position.Copyright © 2016. All rights reserved.