edu.stanford.nlp.international.arabic.process
Class ArabicSegmenterFeatureFactory<IN extends CoreLabel>
java.lang.Object
edu.stanford.nlp.sequences.FeatureFactory<IN>
edu.stanford.nlp.international.arabic.process.ArabicSegmenterFeatureFactory<IN>
- Type Parameters:
IN -
- All Implemented Interfaces:
- java.io.Serializable
public class ArabicSegmenterFeatureFactory<IN extends CoreLabel>
- extends FeatureFactory<IN>
Feature factory for an IOB clitic segmentation model.
- Author:
- Spence Green
- See Also:
- Serialized Form
| Fields inherited from class edu.stanford.nlp.sequences.FeatureFactory |
cliqueC, cliqueCnC, cliqueCp2C, cliqueCp3C, cliqueCp4C, cliqueCp5C, cliqueCpC, cliqueCpCnC, cliqueCpCp2C, cliqueCpCp2Cp3C, cliqueCpCp2Cp3Cp4C, cliqueCpCp2Cp3Cp4Cp5C, flags, knownCliques |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArabicSegmenterFeatureFactory
public ArabicSegmenterFeatureFactory()
init
public void init(SeqClassifierFlags flags)
- Overrides:
init in class FeatureFactory<IN extends CoreLabel>
getCliqueFeatures
public java.util.Collection<java.lang.String> getCliqueFeatures(PaddedList<IN> cInfo,
int loc,
Clique clique)
- Extracts all the features from the input data at a certain index.
- Specified by:
getCliqueFeatures in class FeatureFactory<IN extends CoreLabel>
- Parameters:
cInfo - The complete data set as a List of WordInfoloc - The index at which to extract features.clique - The particular clique for which to extract features. It
should be a member of the knownCliques list.
- Returns:
- A
Collection of the features
calculated for the word at the specified position in info.
featuresC
protected java.util.Collection<java.lang.String> featuresC(PaddedList<? extends CoreLabel> cInfo,
int loc)
Stanford NLP Group