You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2016/03/23 02:49:07 UTC
tika git commit: TIKA-1855 -- make NamedEntityParser explicit in
testParse and add text parser module in test scope to parser-package-module
so that a parser will be available to extract the text in the 7z encryption
test for those with jce installed.
Repository: tika
Updated Branches:
refs/heads/2.x 4390fba13 -> bd67552c3
TIKA-1855 -- make NamedEntityParser explicit in testParse and add text parser module in test scope to parser-package-module so that a parser will be available to extract the text in the 7z encryption test for those with jce installed.
Project: http://git-wip-us.apache.org/repos/asf/tika/repo
Commit: http://git-wip-us.apache.org/repos/asf/tika/commit/bd67552c
Tree: http://git-wip-us.apache.org/repos/asf/tika/tree/bd67552c
Diff: http://git-wip-us.apache.org/repos/asf/tika/diff/bd67552c
Branch: refs/heads/2.x
Commit: bd67552c3a4fdcf6b452c4b9cbf38bdf1ed63750
Parents: 4390fba
Author: tballison <ta...@mitre.org>
Authored: Tue Mar 22 21:47:54 2016 -0400
Committer: tballison <ta...@mitre.org>
Committed: Tue Mar 22 21:47:54 2016 -0400
----------------------------------------------------------------------
.../org/apache/tika/parser/ner/NamedEntityParserTest.java | 1 +
tika-parser-modules/tika-parser-package-module/pom.xml | 7 +++++++
2 files changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tika/blob/bd67552c/tika-parser-modules/tika-parser-advanced-module/src/test/java/org/apache/tika/parser/ner/NamedEntityParserTest.java
----------------------------------------------------------------------
diff --git a/tika-parser-modules/tika-parser-advanced-module/src/test/java/org/apache/tika/parser/ner/NamedEntityParserTest.java b/tika-parser-modules/tika-parser-advanced-module/src/test/java/org/apache/tika/parser/ner/NamedEntityParserTest.java
index 63e75a4..f30eae0 100644
--- a/tika-parser-modules/tika-parser-advanced-module/src/test/java/org/apache/tika/parser/ner/NamedEntityParserTest.java
+++ b/tika-parser-modules/tika-parser-advanced-module/src/test/java/org/apache/tika/parser/ner/NamedEntityParserTest.java
@@ -39,6 +39,7 @@ public class NamedEntityParserTest {
@Test
public void testParse() throws Exception {
+ System.setProperty(NamedEntityParser.SYS_PROP_NER_IMPL, OpenNLPNERecogniser.class.getName());
//test config is added to resources directory
TikaConfig config = new TikaConfig(getClass().getResourceAsStream(CONFIG_FILE));
http://git-wip-us.apache.org/repos/asf/tika/blob/bd67552c/tika-parser-modules/tika-parser-package-module/pom.xml
----------------------------------------------------------------------
diff --git a/tika-parser-modules/tika-parser-package-module/pom.xml b/tika-parser-modules/tika-parser-package-module/pom.xml
index 77f85d0..2e226d2 100644
--- a/tika-parser-modules/tika-parser-package-module/pom.xml
+++ b/tika-parser-modules/tika-parser-package-module/pom.xml
@@ -69,6 +69,13 @@
<artifactId>commons-compress</artifactId>
<version>${commons.compress.version}</version>
</dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>tika-parser-text-module</artifactId>
+ <version>${project.version}</version>
+ <scope>test</scope>
+ </dependency>
+
</dependencies>
<build>