Search in sources :

Example 1 with TurkishLexer

use of zemberek.tokenization.antlr.TurkishLexer in project zemberek-nlp by ahmetaa.

the class TurkishTokenizer method lexerInstance.

private static TurkishLexer lexerInstance(CharStream inputStream) {
    TurkishLexer lexer = new TurkishLexer(inputStream);
    lexer.removeErrorListeners();
    lexer.addErrorListener(IGNORING_ERROR_LISTENER);
    return lexer;
}
Also used : TurkishLexer(zemberek.tokenization.antlr.TurkishLexer)

Aggregations

TurkishLexer (zemberek.tokenization.antlr.TurkishLexer)1