Example usage for opennlp.tools.namefind TokenNameFinderModel getLanguage

List of usage examples for opennlp.tools.namefind TokenNameFinderModel getLanguage

Introduction

In this page you can find the example usage for opennlp.tools.namefind TokenNameFinderModel getLanguage.

Prototype

public final String getLanguage() 

Source Link

Document

Retrieves the language code of the material which was used to train the model or x-unspecified if non was set.

Usage

From source file:org.apache.stanbol.enhancer.engines.opennlp.impl.NEREngineCore.java

protected Collection<String> extractNames(TokenNameFinderModel nameFinderModel, String text) {
    return extractNameOccurrences(nameFinderModel, text, nameFinderModel.getLanguage()).keySet();
}