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:54:12 GMT

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

Steven Bethard commented on CTAKES-140:

Neither ClearTK nor uimaFIT generate descriptor XML files. Those are generated by code in
ctakes-relation-extractor. Specifically, look at RelationExtractorTrain:

	    AnalysisEngineDescription relationExtractorDescription = AnalysisEngineFactory.createPrimitiveDescription(
	        new File(modelsDir, "model.jar").getPath());

which is later output using UIMA's AnalysisEngineDescription.toXML(OutputStream). As you can
see, the descriptor here is using a File path. If you want it to use a URL (e.g. a jar: URL),
then replace the line:

	        new File(modelsDir, "model.jar").getPath());

with a URL instead of a File.
> 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