/** * Construct a basic pipeline. The Properties will be used to determine * which annotators to create, and the AnnotatorPool will be used to create * the specified annotators. * */ public StanfordCoreNLP(AnnotatorPool pool, Properties props, boolean enforceRequirements) { construct(pool, props, enforceRequirements); }
public StanfordCoreNLP(Properties props, boolean enforceRequirements) { construct(props, enforceRequirements); }
public StanfordCoreNLP(String propsFileNamePrefix, boolean enforceRequirements) { Properties props = loadProperties(propsFileNamePrefix); if(props == null){ throw new RuntimeException("ERROR: cannot find properties file \"" + propsFileNamePrefix + "\" in the classpath!"); } construct(null, props, enforceRequirements); }
public StanfordCoreNLP(String propsFileNamePrefix, boolean enforceRequirements) { Properties props = loadProperties(propsFileNamePrefix); if (props == null) { throw new RuntimeIOException("ERROR: cannot find properties file \"" + propsFileNamePrefix + "\" in the classpath!"); } construct(props, enforceRequirements); }