ctakes-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kim Ebert (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CTAKES-146) cTAKES doesn't identify SNOWMED codes consistently
Date Wed, 06 Feb 2013 03:21:12 GMT

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

Kim Ebert commented on CTAKES-146:
----------------------------------

It appears the problem occurs because the permutation list is being sorted( and the list is
not regenerated for each document )

A potential fix for this issue is to clone the permutation before sorting it.

=== modified file 'src/edu/mayo/bmi/lookup/algorithms/FirstTokenPermutationImpl.java'
--- src/edu/mayo/bmi/lookup/algorithms/FirstTokenPermutationImpl.java   2012-11-28 01:56:50
+0000
+++ src/edu/mayo/bmi/lookup/algorithms/FirstTokenPermutationImpl.java   2013-02-06 03:00:59
+0000
@@ -261,7 +261,7 @@                                                                      
       
         {                                                                               
       
             // convert permutation idx back into LookupTokens                           
       
             List tempList = new ArrayList();                                            
       
-            List permutation = (List) permItr.next();                                   
       
+            List permutation = (List)((ArrayList) permItr.next()).clone();              
       
             Iterator idxItr = permutation.iterator();                                   
       
             while (idxItr.hasNext())                                                    
       
             {


                
> cTAKES doesn't identify SNOWMED codes consistently
> --------------------------------------------------
>
>                 Key: CTAKES-146
>                 URL: https://issues.apache.org/jira/browse/CTAKES-146
>             Project: cTAKES
>          Issue Type: Bug
>          Components: ctakes-dictionary-lookup
>    Affects Versions: 2.6-incubating, 3.0-incubating, future enhancement, 3.1-incubating
>            Reporter: Kim Ebert
>
> When running an identical document through in a single run through cTAKES, different
SNOWMED codes are identified for the same document.

--
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