public class EmbeddingFeatureFactory extends FeatureFactory
cliqueC, cliqueCnC, cliqueCp2C, cliqueCp3C, cliqueCp4C, cliqueCp5C, cliqueCpC, cliqueCpCnC, cliqueCpCp2C, cliqueCpCp2Cp3C, cliqueCpCp2Cp3Cp4C, cliqueCpCp2Cp3Cp4Cp5C, flags, knownCliques
Constructor and Description |
---|
EmbeddingFeatureFactory() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection |
getCliqueFeatures(PaddedList info,
int position,
Clique clique)
This method returns a
Collection of the features
calculated for the word at the specified position in info (the list of
words) for the specified Clique . |
addAllInterningAndSuffixing, eachClique, getCliques, getCliques, getWord, init
public java.util.Collection getCliqueFeatures(PaddedList info, int position, Clique clique)
FeatureFactory
Collection
of the features
calculated for the word at the specified position in info (the list of
words) for the specified Clique
.
It should return the actual String features, NOT wrapped in any
other object, as the wrapping
will be done automatically.
Because it takes a PaddedList
you don't
need to worry about indices which are outside of the list.getCliqueFeatures
in class FeatureFactory
info
- A PaddedList of the feature-value pairsposition
- The current position to extract features atclique
- The particular clique for which to extract features. It
should be a member of the knownCliques list.Collection
of the features
calculated for the word at the specified position in info.