You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ma...@apache.org on 2017/07/07 05:02:52 UTC
[tika] branch master updated (3891b87 -> 327ae0b)
This is an automated email from the ASF dual-hosted git repository.
mattmann pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/tika.git.
from 3891b87 Add a few recent mime/magic changes to the changelog
add d700aa4 fix for TIKA-1988 contributed by msharan@usc.edu
add c9031bf Reverting committed work dir
add 92b7b68 fix merge of tika-parsers/pom.xml for age predictor.
add 4e24a14 Implement initializable interface.
add 048dd8e Fix import statement.
add a549ec6 Get needed OpenNLP models for age detection.
add 2d48094 Configure age detector based on classpath.
add 5a653d0 formatting in ModelGetter.
add f8cfa4b Fix typo.
add ce4fdda Use static class.getResource() instead of getClass().getClassLoader()
add 6ff1147 Fix pom to work with Age Recogniser.
new 3c2595d Automatically copy the Age models to the model dir so that you can have them available for classpath tests.
new 9ad510c Use mock class for testing.
new 327ae0b Record change for TIKA-1988 contributed by msharan@usc.edu
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
CHANGES.txt | 4 +
tika-parsers/pom.xml | 30 +++++
.../tika/parser/recognition/AgeRecogniser.java | 145 +++++++++++++++++++++
.../parser/recognition/AgeRecogniserConfig.java | 55 ++++++++
.../tika/parser/recognition/AgeRecogniserTest.java | 74 +++++++++++
.../tika/parser/ner/opennlp/ModelGetter.groovy | 14 +-
.../tika-config-age.xml} | 8 +-
7 files changed, 325 insertions(+), 5 deletions(-)
create mode 100644 tika-parsers/src/main/java/org/apache/tika/parser/recognition/AgeRecogniser.java
create mode 100644 tika-parsers/src/main/java/org/apache/tika/parser/recognition/AgeRecogniserConfig.java
create mode 100644 tika-parsers/src/test/java/org/apache/tika/parser/recognition/AgeRecogniserTest.java
copy tika-parsers/src/test/resources/org/apache/tika/parser/{ner/tika-config.xml => recognition/tika-config-age.xml} (76%)
--
To stop receiving notification emails like this one, please contact
['"commits@tika.apache.org" <co...@tika.apache.org>'].
[tika] 03/03: Record change for TIKA-1988 contributed by
msharan@usc.edu
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
mattmann pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tika.git
commit 327ae0b0cbfc205a2733590dc2668f2523ac2732
Author: Chris Mattmann <ma...@apache.org>
AuthorDate: Thu Jul 6 22:02:33 2017 -0700
Record change for TIKA-1988 contributed by msharan@usc.edu
---
CHANGES.txt | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/CHANGES.txt b/CHANGES.txt
index 7fef59c..1336c53 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,5 +1,9 @@
Release 1.16 - ??/??/????
+ * Add Age recognition using Ensemble model for Linear regression
+ and Apache OpenNLP Maximum Entropy. Tika can now detect age from
+ text (TIKA-1988).
+
* Add Tika Deep Learning support for the VGG16 model for
Very Deep Convolutional Networks for Large-Scale Image Recognition.
Now Tika supports both Inception v3/v4 and VGG16 based image
--
To stop receiving notification emails like this one, please contact
"commits@tika.apache.org" <co...@tika.apache.org>.
[tika] 01/03: Automatically copy the Age models to the model dir so
that you can have them available for classpath tests.
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
mattmann pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tika.git
commit 3c2595d330b1d7840f94c6cda1c0c79bd6aa7a74
Author: Chris Mattmann <ma...@apache.org>
AuthorDate: Thu Jul 6 21:59:47 2017 -0700
Automatically copy the Age models to the model dir so that you can have them available for classpath tests.
---
tika-parsers/pom.xml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tika-parsers/pom.xml b/tika-parsers/pom.xml
index 1ecbcf6..eaee7de 100644
--- a/tika-parsers/pom.xml
+++ b/tika-parsers/pom.xml
@@ -624,6 +624,8 @@
<copy file="${basedir}/src/test/resources/org/apache/tika/parser/ner/opennlp/en-pos-maxent.bin" todir="${basedir}/model/opennlp/"/>
<copy file="${basedir}/src/test/resources/org/apache/tika/parser/ner/opennlp/en-sent.bin" todir="${basedir}/model/opennlp/"/>
<copy file="${basedir}/src/test/resources/org/apache/tika/parser/ner/opennlp/en-token.bin" todir="${basedir}/model/opennlp/"/>
+ <copy file="${basedir}/src/test/resources/org/apache/tika/parser/recognition/classify-bigram.bin" todir="${basedir}/model/org/apache/tika/parser/recognition/"/>
+ <copy file="${basedir}/src/test/resources/org/apache/tika/parser/recognition/regression-global.bin" todir="${basedir}/model/org/apache/tika/parser/recognition/"/>
</target>
</configuration>
</execution>
--
To stop receiving notification emails like this one, please contact
"commits@tika.apache.org" <co...@tika.apache.org>.
[tika] 02/03: Use mock class for testing.
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
mattmann pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tika.git
commit 9ad510cc67871e266aece1684b21a94b524517c3
Author: Chris Mattmann <ma...@apache.org>
AuthorDate: Thu Jul 6 22:00:02 2017 -0700
Use mock class for testing.
---
.../test/java/org/apache/tika/parser/recognition/AgeRecogniserTest.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/tika-parsers/src/test/java/org/apache/tika/parser/recognition/AgeRecogniserTest.java b/tika-parsers/src/test/java/org/apache/tika/parser/recognition/AgeRecogniserTest.java
index 05c9865..10e5914 100644
--- a/tika-parsers/src/test/java/org/apache/tika/parser/recognition/AgeRecogniserTest.java
+++ b/tika-parsers/src/test/java/org/apache/tika/parser/recognition/AgeRecogniserTest.java
@@ -46,6 +46,7 @@ public class AgeRecogniserTest extends TikaTest {
* Injecting mock AgeClassifer into AgeParser to generate test response
*/
AgePredicterLocal mockAgeClassifier = mock(AgePredicterLocal.class);
+ AgeRecogniser.setAgePredictorClient(mockAgeClassifier);
try {
when(mockAgeClassifier.predictAge(TEST_TEXT)).thenReturn(TEST_AGE);
--
To stop receiving notification emails like this one, please contact
"commits@tika.apache.org" <co...@tika.apache.org>.