ctakes-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pei Chen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CTAKES-140) Allow clearTK to load read-only models from classpath instead of file URL.
Date Mon, 04 Feb 2013 17:34:13 GMT

    [ https://issues.apache.org/jira/browse/CTAKES-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13570421#comment-13570421

Pei Chen commented on CTAKES-140:

Yes.  We can use the jar: protocol.  But we'll need to ensure that those models are packed
inside a jar And clearTK (or uimaFIT) would also need to add the jar: prefix when generating
the descriptor xml files when a model gets retrained.  Either way would work for us; just
let us know the preference. (my hunch would think it would be easier to add an .loadresourcefromstream()
option in clearTK ).

> Allow clearTK to load read-only models from classpath instead of file URL.
> --------------------------------------------------------------------------
>                 Key: CTAKES-140
>                 URL: https://issues.apache.org/jira/browse/CTAKES-140
>             Project: cTAKES
>          Issue Type: Improvement
>          Components: ctakes-relation-extractor
>    Affects Versions: 3.0-incubating
>            Reporter: Pei Chen
>            Priority: Minor
> Currently, clearTK's org.cleartk.classifier.jar.GenericJarClassifierFactory.classifierJarPath
can only load the models from a file URL, it would be nice to also allow it to read it from
the classpath.
> https://code.google.com/p/cleartk/issues/detail?id=346&thanks=346&ts=1359995634
> Temporarily, updating the descriptor xml to read it from a valid file URL relative to
CTAKES_HOME (for deployment) i.e.:
> <nameValuePair>
> <name>org.cleartk.classifier.jar.GenericJarClassifierFactory.classifierJarPath</name>
> <value>
> <string>resources/org/apache/ctakes/relationextractor/models/modifier_extractor/model.jar</string>
> </value>
> </nameValuePair>

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

View raw message