google-code-export / dkpro-core-asl

Automatically exported from code.google.com/p/dkpro-core-asl
0 stars 0 forks source link

TreeTagger model name issue #252

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm getting following error message if I try to use TreeTaggerPosLemmaTT4J  in 
my pipeline: Unable to locate model [de] in the following locations 
[classpath:/de/tudarmstadt/ukp/dkpro/core/treetagger/lib/tagger-de-little-endian
.par].  Make sure the environment variable 'TREETAGGER_HOME' or 'TAGDIR' or the 
system property 'treetagger.home' point to the TreeTagger installation 
directory.

The reason for that is in the code of TreeTaggerTT4JBase: the search name for 
the german model file on OS X looks like "tagger-de-little-endian.par" but the 
model files are looking different "de-tagger-little-endian.par"

Fixing the line 324 of TreeTaggerTT4JBase should solve this problem (String 
baseFile = getType() + "-" + aModelName + "-" + byteOrder;)

What version of the product are you using? On what operating system?
OS X 10.8
dkpro-core-asl 1.5.0

Please provide any additional information below.
String baseFile = getType() + "-" + aModelName + "-" + byteOrder;

Best,
Artem

Original issue reported on code.google.com by vovk.ar...@gmail.com on 25 Sep 2013 at 3:44

GoogleCodeExporter commented 9 years ago
You probably use the wrong version of the model artifact. 

Open your POM in the Eclipse POM editor, add in the dependency management 
section:

groupId: de.tudarmstadt.ukp.dkpro.core
artifactId: de.tudarmstadt.ukp.dkpro.core.treetagger-asl
version: 1.5.0
type: pom
scope: import

then add in the dependecy section this:

groupId: de.tudarmstadt.ukp.dkpro.core
artifactId: de.tudarmstadt.ukp.dkpro.core.treetagger-model-de

no version here. Maven should choose the right version for you then.

Original comment by richard.eckart on 25 Sep 2013 at 3:52

GoogleCodeExporter commented 9 years ago
Thanks Richard! I really used the wrong version of the model.

Original comment by vovk.ar...@gmail.com on 26 Sep 2013 at 9:26

GoogleCodeExporter commented 9 years ago

Original comment by richard.eckart on 26 Sep 2013 at 9:28

GoogleCodeExporter commented 9 years ago
I had the exact same problem. 

Unable to locate model [de] in the following locations 
[classpath:/de/tudarmstadt/ukp/dkpro/core/treetagger/lib/tagger-de-little-endian
.par].  Make sure the environment variable 'TREETAGGER_HOME' or 'TAGDIR' or the 
system property 'treetagger.home' point to the TreeTagger installation 
directory.

Turns out in the end that I had not configured Eclipse with scruffy. Because of 
this, several .de treetagger-models were not displaying. And the ones that were 
displaying were not compatible with the DKPro version that I was using 
throughout the rest of my code.

After configuring with Scruffy, I add dependencies to the newest model and it 
all works fine again now.

Original comment by tahirso...@gmail.com on 19 Nov 2013 at 5:41