edu.stanford.nlp.international.arabic.process
Class ArabicSegmenterFeatureFactory<IN extends CoreLabel>

java.lang.Object
  extended by edu.stanford.nlp.sequences.FeatureFactory<IN>
      extended by 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

Field Summary
 
Fields inherited from class edu.stanford.nlp.sequences.FeatureFactory
cliqueC, cliqueCnC, cliqueCp2C, cliqueCp3C, cliqueCp4C, cliqueCp5C, cliqueCpC, cliqueCpCnC, cliqueCpCp2C, cliqueCpCp2Cp3C, cliqueCpCp2Cp3Cp4C, cliqueCpCp2Cp3Cp4Cp5C, flags, knownCliques
 
Constructor Summary
ArabicSegmenterFeatureFactory()
           
 
Method Summary
protected  java.util.Collection<java.lang.String> featuresC(PaddedList<? extends CoreLabel> cInfo, int loc)
           
 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.
 void init(SeqClassifierFlags flags)
           
 
Methods inherited from class edu.stanford.nlp.sequences.FeatureFactory
addAllInterningAndSuffixing, getCliques, getCliques, getWord
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArabicSegmenterFeatureFactory

public ArabicSegmenterFeatureFactory()
Method Detail

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 WordInfo
loc - 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