Repository: opennlp Updated Branches: refs/heads/master bddd536a9 -> b73744b71
OPENNLP-940: Use all cores for build, user 4 cores for parser eval Project: http://git-wip-us.apache.org/repos/asf/opennlp/repo Commit: http://git-wip-us.apache.org/repos/asf/opennlp/commit/b73744b7 Tree: http://git-wip-us.apache.org/repos/asf/opennlp/tree/b73744b7 Diff: http://git-wip-us.apache.org/repos/asf/opennlp/diff/b73744b7 Branch: refs/heads/master Commit: b73744b718bff5da7b22c798ceb9d58b360fb1ce Parents: bddd536 Author: Jörn Kottmann <[email protected]> Authored: Sun Jan 15 00:20:34 2017 +0100 Committer: Jörn Kottmann <[email protected]> Committed: Mon Jan 16 17:43:11 2017 +0100 ---------------------------------------------------------------------- opennlp-tools/pom.xml | 2 +- .../test/java/opennlp/tools/eval/OntoNotes4ParserEval.java | 9 ++++++++- pom.xml | 2 ++ 3 files changed, 11 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/opennlp/blob/b73744b7/opennlp-tools/pom.xml ---------------------------------------------------------------------- diff --git a/opennlp-tools/pom.xml b/opennlp-tools/pom.xml index 2e3fe78..506d889 100644 --- a/opennlp-tools/pom.xml +++ b/opennlp-tools/pom.xml @@ -77,7 +77,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <argLine>-Xmx1024m</argLine> + <argLine>-Xmx4096m</argLine> <excludes> <exclude>/opennlp/tools/eval/**/*</exclude> </excludes> http://git-wip-us.apache.org/repos/asf/opennlp/blob/b73744b7/opennlp-tools/src/test/java/opennlp/tools/eval/OntoNotes4ParserEval.java ---------------------------------------------------------------------- diff --git a/opennlp-tools/src/test/java/opennlp/tools/eval/OntoNotes4ParserEval.java b/opennlp-tools/src/test/java/opennlp/tools/eval/OntoNotes4ParserEval.java index 00e37dd..e775567 100644 --- a/opennlp-tools/src/test/java/opennlp/tools/eval/OntoNotes4ParserEval.java +++ b/opennlp-tools/src/test/java/opennlp/tools/eval/OntoNotes4ParserEval.java @@ -72,6 +72,13 @@ public class OntoNotes4ParserEval { 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); } } http://git-wip-us.apache.org/repos/asf/opennlp/blob/b73744b7/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index ee1ecf0..409762c 100644 --- a/pom.xml +++ b/pom.xml @@ -123,6 +123,7 @@ <enforcer.plugin.version>1.4.1</enforcer.plugin.version> <junit.version>4.12</junit.version> <checkstyle.plugin.version>2.17</checkstyle.plugin.version> + <opennlp.forkCount>1.0C</opennlp.forkCount> </properties> <build> @@ -283,6 +284,7 @@ <configuration> <skipTests>false</skipTests> <argLine>-Xmx512m</argLine> + <forkCount>${opennlp.forkCount}</forkCount> </configuration> </plugin>
