Search in sources :

Example 1 with UimaTokenizer

use of org.deeplearning4j.text.tokenization.tokenizer.UimaTokenizer in project deeplearning4j by deeplearning4j.

the class UimaTokenizerFactory method create.

@Override
public Tokenizer create(String toTokenize) {
    if (toTokenize == null)
        throw new IllegalArgumentException("Unable to proceed; on sentence to tokenize");
    Tokenizer ret = new UimaTokenizer(toTokenize, uimaResource, checkForLabel);
    ret.setTokenPreProcessor(preProcess);
    return ret;
}
Also used : UimaTokenizer(org.deeplearning4j.text.tokenization.tokenizer.UimaTokenizer) Tokenizer(org.deeplearning4j.text.tokenization.tokenizer.Tokenizer) UimaTokenizer(org.deeplearning4j.text.tokenization.tokenizer.UimaTokenizer)

Aggregations

Tokenizer (org.deeplearning4j.text.tokenization.tokenizer.Tokenizer)1 UimaTokenizer (org.deeplearning4j.text.tokenization.tokenizer.UimaTokenizer)1