cc.mallet.pipe
Class SimpleTokenizer
- java.lang.Object
-
- cc.mallet.pipe.Pipe
-
- cc.mallet.pipe.SimpleTokenizer
-
- All Implemented Interfaces:
- AlphabetCarrying, java.io.Serializable
public class SimpleTokenizer extends Pipe
A simple unicode tokenizer that accepts sequences of letters as tokens.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static intUSE_DEFAULT_ENGLISH_STOPLISTstatic intUSE_EMPTY_STOPLIST
-
Constructor Summary
Constructors Constructor and Description SimpleTokenizer(java.io.File stopfile)SimpleTokenizer(java.util.HashSet<java.lang.String> stoplist)SimpleTokenizer(int languageFlag)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description SimpleTokenizerdeepClone()Instancepipe(Instance instance)Really this should be 'protected', but isn't for historical reasons.voidstop(java.lang.String word)-
Methods inherited from class cc.mallet.pipe.Pipe
alphabetsMatch, getAlphabet, getAlphabets, getDataAlphabet, getInstanceId, getTargetAlphabet, instanceFrom, instancesFrom, instancesFrom, isDataAlphabetSet, isTargetProcessing, newIteratorFrom, precondition, readResolve, setDataAlphabet, setOrCheckDataAlphabet, setOrCheckTargetAlphabet, setTargetAlphabet, setTargetProcessing
-
-
-
-
Field Detail
-
USE_EMPTY_STOPLIST
public static final int USE_EMPTY_STOPLIST
- See Also:
- Constant Field Values
-
USE_DEFAULT_ENGLISH_STOPLIST
public static final int USE_DEFAULT_ENGLISH_STOPLIST
- See Also:
- Constant Field Values
-
-
DataMelt 3.0 © DataMelt by jWork.ORG