Example usage for edu.stanford.nlp.pipeline TokensRegexNERAnnotator TokensRegexNERAnnotator

List of usage examples for edu.stanford.nlp.pipeline TokensRegexNERAnnotator TokensRegexNERAnnotator

Introduction

In this page you can find the example usage for edu.stanford.nlp.pipeline TokensRegexNERAnnotator TokensRegexNERAnnotator.

Prototype

public TokensRegexNERAnnotator(String name, Properties properties) 

Source Link

Usage

From source file:com.koalephant.nlp.RegexNERValidator.java

License:Open Source License

/**
 * Test the Mapping by invoking the NERAnnotator
 *
 * @param properties the properties object
 *///from  w  w  w .  jav a2 s. c  om
protected static void testMappings(Properties properties) {
    try {
        new TokensRegexNERAnnotator(Annotator.STANFORD_REGEXNER, properties);
    } catch (PatternSyntaxException exception) {
        System.err.println(exception.getLocalizedMessage());
        System.exit(1);
    }
}