Java Code Examples for org.grobid.core.GrobidModels#ENTITIES_NER
The following examples show how to use
org.grobid.core.GrobidModels#ENTITIES_NER .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NERTrainer.java From grobid-ner with Apache License 2.0 | 5 votes |
public NERTrainer() { super(GrobidModels.ENTITIES_NER); // adjusting CRF training parameters for this model this.epsilon = 0.000001; this.window = 20; this.nbMaxIterations = 200; // read additional properties for this sub-project to get the paths to the resources Properties prop = new Properties(); InputStream input = null; try { input = new FileInputStream("src/main/resources/grobid-ner.properties"); // load the properties file prop.load(input); // get the property value reutersPath = prop.getProperty("grobid.ner.reuters.paths"); idiliaPath = prop.getProperty("grobid.ner.reuters.idilia_path"); nerCorpusPath = prop.getProperty("grobid.ner.extra_corpus"); } catch (IOException ex) { throw new GrobidResourceException( "An exception occured when accessing/reading the grobid-ner property file.", ex); } finally { IOUtils.closeQuietly(input); } }
Example 2
Source File: NEREvaluation.java From grobid-ner with Apache License 2.0 | 4 votes |
public NEREvaluation() { GrobidProperties.getInstance(); model = GrobidModels.ENTITIES_NER; loadAdditionalProperties(); }
Example 3
Source File: NEREnParser.java From grobid-ner with Apache License 2.0 | 4 votes |
public NEREnParser() { this(GrobidModels.ENTITIES_NER); }