dkpro / dkpro-core

Collection of software components for natural language processing (NLP) based on the Apache UIMA framework.
https://dkpro.github.io/dkpro-core
Other
196 stars 67 forks source link

Problem loading OpenNlp-and TreeTagger-Models #166

Closed reckart closed 9 years ago

reckart commented 9 years ago
Hi, 

I use TreeTagger for German POS tagging and chunking and OpenNlpTagger for German POS
tagging (in differnt projects) which has been working a short while ago. When running
the pipeline, I get the AE Process Exception below. There are no POM errors and Maven
build succeeds without an error. I am using Core v1.4.0.

Regards,
Susanne

Caused by: java.io.IOException: Unable to load resource [classpath:/de/tudarmstadt/ukp/dkpro/core/opennlp/lib/tagger-de-maxent.bin]:
FileNotFoundException: No file found at [classpath:/de/tudarmstadt/ukp/dkpro/core/opennlp/lib/tagger-de-maxent.bin]
Please make sure that de.tudarmstadt.ukp.dkpro.core.opennlp-model-tagger-de-maxent
version 20120616.0 is on the classpath.

Original issue reported on code.google.com by susanneumann on 2013-06-25 09:25:33

reckart commented 9 years ago
The automatic resolving is not available in 1.4.0, only in recent 1.5.0-SNAPSHOT versions.

With 1.4.0, you should add the following to your pom:

To "dependencies"
  <dependency>
    <groupId>de.tudarmstadt.ukp.dkpro.core</groupId>
    <artifactId>de.tudarmstadt.ukp.dkpro.core.opennlp-model-tagger-de-maxent</artifactId>
  </dependency>

To "dependencyManagement/dependencies"

  <dependency>
    <groupId>de.tudarmstadt.ukp.dkpro.core</groupId>
    <artifactId>de.tudarmstadt.ukp.dkpro.core.opennlp-asl</artifactId>
    <version>1.4.0</version>
    <type>pom</type>
    <scope>import</scope>
  </dependency>

Original issue reported on code.google.com by richard.eckart on 2013-06-25 09:35:40

reckart commented 9 years ago
(No text was entered with this change)

Original issue reported on code.google.com by richard.eckart on 2013-06-25 10:56:48

reckart commented 9 years ago
Problem was reported as solved on the mailing list.

Original issue reported on code.google.com by richard.eckart on 2013-06-30 12:14:17