iitb.Segment
Class AlphaNumericPreprocessor
java.lang.Object
iitb.Segment.Preprocessor
iitb.Segment.AlphaNumericPreprocessor
- public class AlphaNumericPreprocessor
- extends Preprocessor
- Author:
- Sunita Sarawagi
Field Summary |
static java.lang.String |
DIGIT
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DIGIT
public static java.lang.String DIGIT
AlphaNumericPreprocessor
public AlphaNumericPreprocessor()
getCode
public int getCode()
- Overrides:
getCode
in class Preprocessor
preprocess
public static java.lang.String preprocess(java.lang.String s)
isNumber
public static boolean isNumber(java.lang.String s)
preprocess
public static TrainData preprocess(TrainData tokens,
int numLabels)
Submit a bug or feature.