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

ASF subversion and git services commented on CTAKES-364:
--------------------------------------------------------

Commit 1696831 from chen...@apache.org in branch 'ctakes/trunk'
[ https://svn.apache.org/r1696831 ]

CTAKES-364 - Allow Dictionary lookup fast to read in resources from InputStream 
instead of File (allow reading within a jar).  
Done for BSV resources and config.
Added junit test case to ensure resources are loaded properly.

> Dictionary-Lookup-Fast will fail with URI is not Hierarchical 
> --------------------------------------------------------------
>
>                 Key: CTAKES-364
>                 URL: https://issues.apache.org/jira/browse/CTAKES-364
>             Project: cTAKES
>          Issue Type: Bug
>          Components: ctakes-dictionary-lookup
>            Reporter: Pei Chen
>
> Have the resource read in a stream rather than a File Resource Object.
> http://svn.apache.org/repos/asf/ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/ae/AbstractJCasTermAnnotator.java
>  
> initalize()
> //This will assume that resource descriptor xml can only be read in by 
> physical java File objects.  If they are inside a jar, it will fail with URI 
> is not Hierarchical
> final FileResource fileResource = 
> (FileResource)uimaContext.getResourceObject( DICTIONARY_DESCRIPTOR_KEY );
>          final File descriptorFile = fileResource.getFile();
> The configuration can just take in a String path and use InputStream 
> FileLocator.locate() to read it in from the stream.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to