Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.0-incubating
-
None
Description
The relation extractor looks for models in a "resources/models" directory, causing the following error if you just add the ctakes-relation-extractor to the build path of another model and try to use the relation extractor models:
Caused by: java.io.FileNotFoundException: resources/models/em_pair/model.jar (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:120)
at java.io.FileInputStream.<init>(FileInputStream.java:79)
at org.cleartk.classifier.jar.GenericJarClassifierFactory.createClassifier(GenericJarClassifierFactory.java:67)
at org.cleartk.classifier.jar.JarClassifierFactory.createClassifier(JarClassifierFactory.java:35)
at org.cleartk.classifier.CleartkAnnotator.initialize(CleartkAnnotator.java:113)
Instead, the relation extractor should look for models on the classpath. This would be easiest after the fix for https://code.google.com/p/cleartk/issues/detail?id=346 but with a little work we can do this now too.