Closed pasky closed 8 years ago
We can remove the workaround now. However, it puzzles me why it would work for you without the workaround. We have unit tests that load the Spanish pos tagger model from a JAR and they work nicely. Looks like you are using auto-loading. Does it work when you add a direct dependency to the model to your POM?
(Sorry, testing that question isn't a simple matter for me right now as I'm only consulting on that project.)
Hi! When trying to use StanfordPosTagger on an es-language CAS, we get a crash in dkpro, both with 1.8.0 and master when trying to load the model resource.
The resource seems to be provisioned fine:
but StanfordNLP cannot open it:
It seems this is caused by the hack catering to older StanfordParser versions in StanfordPosTagger.java line 170, which seems to break things as it stands now. Commenting out that if(){} fixes the issue, but I'd rather someone who understands this to judge if that's okay to remove again (and maybe it needs to be removed in other Stanford wrappers too?).