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

Dictionary-Lookup-Fast will fail with URI is not Hierarchical

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0
    • None

    Description

      Have the resource read in a stream rather than a File Resource Object.
      http://svn.apache.org/repos/asf/ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/ae/AbstractJCasTermAnnotator.java
      initalize()
      //This will assume that resource descriptor xml can only be read in by physical java File objects. If they are inside a jar, it will fail with URI is not Hierarchical
      final FileResource fileResource = (FileResource)uimaContext.getResourceObject( DICTIONARY_DESCRIPTOR_KEY );
      final File descriptorFile = fileResource.getFile();

      The configuration can just take in a String path and use InputStream FileLocator.locate() to read it in from the stream.

      Attachments

        Activity

          People

            Unassigned Unassigned
            chenpei Pei Chen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: