Package de.jungblut.ner
Interface SequenceFeatureExtractor<K>
-
- All Known Implementing Classes:
BasicFeatureExtractor
public interface SequenceFeatureExtractor<K>Interface for feature extraction in sequence learning. Can be used with theSparseFeatureExtractorHelperto calculate real vectors to use in a classifier.- Author:
- thomas.jungblut
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<java.lang.String>computeFeatures(java.util.List<K> words, int prevLabel, int position)Compute a feature for the given sequence (the complete list words).
-
-
-
Method Detail
-
computeFeatures
java.util.List<java.lang.String> computeFeatures(java.util.List<K> words, int prevLabel, int position)
Compute a feature for the given sequence (the complete list words). Given are the previous label and the current index (position). This method will be called for every index in the list of words.- Parameters:
words- all words in that sequence.prevLabel- the previous label.position- the current position.- Returns:
- a set of features for this position.
-
-