ctakes-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Bethard (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:10:13 GMT

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

Steven Bethard commented on CTAKES-140:
---------------------------------------

It's not true that it can only load models from a "file URL". It can only load models from
a File OR a URL. And you can load models from the classpath, you just need to provide a JAR
URL:

http://docs.oracle.com/javase/tutorial/deployment/jar/jarclassloader.html

                
> 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

Mime
View raw message