public class JapaneseTokenizerFactory extends java.lang.Object implements TokenizerFactory
Constructor and Description |
---|
JapaneseTokenizerFactory() |
Modifier and Type | Method and Description |
---|---|
Tokenizer |
create(java.io.InputStream toTokenize)
Create a tokenizer based on an input stream
|
Tokenizer |
create(java.lang.String toTokenize)
The tokenizer to createComplex
|
TokenPreProcess |
getTokenPreProcessor()
Returns TokenPreProcessor set for this TokenizerFactory instance
|
void |
setTokenPreProcessor(TokenPreProcess preProcessor)
Sets a token pre processor to be used
with every tokenizer
|
public Tokenizer create(java.lang.String toTokenize)
TokenizerFactory
create
in interface TokenizerFactory
toTokenize
- the string to createComplex the tokenizer withpublic Tokenizer create(java.io.InputStream toTokenize)
TokenizerFactory
create
in interface TokenizerFactory
public void setTokenPreProcessor(TokenPreProcess preProcessor)
TokenizerFactory
setTokenPreProcessor
in interface TokenizerFactory
preProcessor
- the token pre processor to usepublic TokenPreProcess getTokenPreProcessor()
TokenizerFactory
getTokenPreProcessor
in interface TokenizerFactory