Skip to content

Commit

Permalink
OPENNLP-940: Use all cores for build, user 4 cores for parser eval
Browse files Browse the repository at this point in the history
  • Loading branch information
kottmann committed Jan 14, 2017
1 parent 2b0c681 commit 19276df
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion opennlp-tools/pom.xml
Expand Up @@ -77,7 +77,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>-Xmx1024m</argLine>
<argLine>-Xmx4024m</argLine>
<excludes>
<exclude>/opennlp/tools/eval/**/*</exclude>
</excludes>
Expand Down
Expand Up @@ -72,6 +72,13 @@ public void evalEnglishMaxent() throws IOException {
new InputStreamReader(headRulesIn, "UTF-8"));
}

crossEval(ModelUtil.createDefaultTrainingParameters(), headRules, 0.937987617163142d);
TrainingParameters params = ModelUtil.createDefaultTrainingParameters();
params.put("build.Threads", "4");
params.put("tagger.Threads", "4");
params.put("chunker.Threads", "4");
params.put("check.Threads", "4");


crossEval(params, headRules, 0.937987617163142d);
}
}
1 change: 1 addition & 0 deletions pom.xml
Expand Up @@ -283,6 +283,7 @@
<configuration>
<skipTests>false</skipTests>
<argLine>-Xmx512m</argLine>
<forkCount>1.0C</forkCount>
</configuration>
</plugin>

Expand Down

0 comments on commit 19276df

Please sign in to comment.