uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pablo Duboue (KeaText) (JIRA)" <...@uima.apache.org>
Subject [jira] [Updated] (UIMA-2647) Loading TextMarker dictionaries from the classpath
Date Thu, 07 Feb 2013 22:33:13 GMT

     [ https://issues.apache.org/jira/browse/UIMA-2647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pablo Duboue (KeaText) updated UIMA-2647:
-----------------------------------------

    Attachment: load-dictionaries-from-classpath.patch

modified low-level load methods to take InputStreams rather than filename Strings and to throw
IOException as needed, then modified TextMarkerEnvironment to load streams from the classpath
if loading files from the file system fails.
                
> Loading TextMarker dictionaries from the classpath
> --------------------------------------------------
>
>                 Key: UIMA-2647
>                 URL: https://issues.apache.org/jira/browse/UIMA-2647
>             Project: UIMA
>          Issue Type: Improvement
>          Components: TextMarker
>    Affects Versions: 2.0.0TextMarker
>            Reporter: Pablo Duboue (KeaText)
>            Priority: Minor
>         Attachments: load-dictionaries-from-classpath.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message