Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-2647

Loading TextMarker dictionaries from the classpath

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0TextMarker
    • 2.0.0TextMarker
    • Ruta

    Description

      While TextMarker can cope with loading its main script relative to the classpath, it can't load dictionaries from it. That feature is very useful in production enviroments.

      Attached is a patch that enables that. It also tries to "bubble" up the exceptions in the low level classes a little bit more (currently TextMarker "eats" a lot of exceptions, that's something most probably to be addressed in UIMA #2567).

      Of note: both MultiTreeWordList and TreeWordList will silently ignore their parameters (and load nothing) if it doesn't end in a "magic" extension (e.g., "txt" or "twl"). Shouldn't they throw an exception or at least log a warning? If so, that could be worth another bug report.

      Attachments

        1. load-dictionaries-from-classpath.patch
          14 kB
          Pablo Duboue (KeaText)

        Activity

          People

            pkluegl Peter Klügl
            pdubouekeatext Pablo Duboue (KeaText)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: