This is an automated email from the ASF dual-hosted git repository.
krickert pushed a change to branch feat/GH-1476-parser-builder-factory
in repository https://gitbox.apache.org/repos/asf/opennlp.git
from 7a560bd7a OPENNLP-1935: Regex removal (10/10): Forbid java.util.regex
in production code (#1348)
add 0d4bb95df GH-1476: Let the parsers take a caller-supplied POSTagger
and Chunker
No new revisions were added by this update.
Summary of changes:
.../tools/parser/AbstractBottomUpParser.java | 51 +++++++-
.../java/opennlp/tools/parser/ParserBuilder.java | 133 +++++++++++++++++++
.../java/opennlp/tools/parser/ParserFactory.java | 31 +++--
.../java/opennlp/tools/parser/chunking/Parser.java | 39 +++++-
.../opennlp/tools/parser/treeinsert/Parser.java | 42 +++++-
.../tools/parser/AbstractParserModelTest.java | 94 ++++++++++++++
.../opennlp/tools/parser/ParserBuilderTest.java | 134 +++++++++++++++++++
.../java/opennlp/tools/parser/ParserTestUtil.java | 144 +++++++++++++++++++++
.../opennlp/tools/parser/chunking/ParserTest.java | 8 ++
.../tools/parser/treeinsert/ParserTest.java | 8 ++
opennlp-docs/src/docbkx/parser.xml | 13 ++
11 files changed, 670 insertions(+), 27 deletions(-)
create mode 100644
opennlp-core/opennlp-runtime/src/main/java/opennlp/tools/parser/ParserBuilder.java
create mode 100644
opennlp-core/opennlp-runtime/src/test/java/opennlp/tools/parser/ParserBuilderTest.java