Uploaded image for project: 'cTAKES'
  1. cTAKES
  2. CTAKES-177

relation extractor should look for models on classpath

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0-incubating
    • 3.1.0
    • None

    Description

      http://mail-archives.apache.org/mod_mbox/incubator-ctakes-dev/201303.mbox/%3CB6FD5849-9BC5-4AB5-94CB-C04AEE7DE150%40mayo.edu%3E

      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.

      Attachments

        Activity

          People

            steven.bethard Steven Bethard
            steven.bethard Steven Bethard
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: