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
195 stars 67 forks source link

Hunpos binaries do not run on OS X Catalina #1471

Closed reckart closed 4 years ago

reckart commented 4 years ago

Since OS X Catalina, any tests involving hunpos no longer run. They fail with this error:

Caused by: java.io.IOException: error=86, Bad CPU type in executable
    at org.dkpro.core.hunpos.HunPosTaggerTest.runTest(HunPosTaggerTest.java:277)
    at org.dkpro.core.hunpos.HunPosTaggerTest.testSwedish(HunPosTaggerTest.java:170)

This affects not only the hunpos module but also other modules which use hunpos as a preprocessing step in their tests:

While MstParser and MateTools are probably only of historic interest, MaltParser still seems relevant today.

I think the last time I tried recompiling hunpos for recent platforms, the problem was that it was not able to deserialize the pre-built models we have so far.

As a solution, I would propose to use an assume to skip tests on platforms that do not to run hunpos.

Eventually, it would be good to remove the dependency of other modules on hunpos for testing. This could be done in a general effort to test components in isolation instead of relying on pipelines in unit tests.