public class Capitalization
extends edu.illinois.cs.cogcomp.lbjava.classify.Classifier
Word
as input and
generates Boolean features representing the capitalizations of the words
in a [-2, +2] window around the input word. The generated features
consist of the capitalization (as read from Word.capitalized
) of
the input word as well as the capitalizations of the two words before the
input word in the sentence and the capitalizations of the two words after
the input word in the sentence. If any of those words do not exist, the
corresponding feature isn't generated.
This class's implementation was automatically generated by the LBJava compiler.
Constructor and Description |
---|
Capitalization() |
Modifier and Type | Method and Description |
---|---|
String[] |
allowableValues() |
edu.illinois.cs.cogcomp.lbjava.classify.FeatureVector |
classify(Object __example) |
edu.illinois.cs.cogcomp.lbjava.classify.FeatureVector[] |
classify(Object[] examples) |
boolean |
equals(Object o) |
static String[] |
getAllowableValues() |
String |
getInputType() |
String |
getOutputType() |
int |
hashCode() |
public String getInputType()
getInputType
in class edu.illinois.cs.cogcomp.lbjava.classify.Classifier
public String getOutputType()
getOutputType
in class edu.illinois.cs.cogcomp.lbjava.classify.Classifier
public static String[] getAllowableValues()
public String[] allowableValues()
allowableValues
in class edu.illinois.cs.cogcomp.lbjava.classify.Classifier
public edu.illinois.cs.cogcomp.lbjava.classify.FeatureVector classify(Object __example)
classify
in class edu.illinois.cs.cogcomp.lbjava.classify.Classifier
public edu.illinois.cs.cogcomp.lbjava.classify.FeatureVector[] classify(Object[] examples)
classify
in class edu.illinois.cs.cogcomp.lbjava.classify.Classifier
Copyright © 2017. All rights reserved.