List of usage examples for edu.stanford.nlp.pipeline TokensRegexNERAnnotator TokensRegexNERAnnotator
public TokensRegexNERAnnotator(String name, Properties properties)
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); } }