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] [Updated] (CTAKES-318) StrengthFSM incorrectly eliminates values
Date Tue, 07 Oct 2014 21:58:33 GMT

     [ https://issues.apache.org/jira/browse/CTAKES-318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kim Ebert updated CTAKES-318:
-----------------------------
    Summary: StrengthFSM incorrectly eliminates values  (was: StrengthFSM )

> StrengthFSM incorrectly eliminates values
> -----------------------------------------
>
>                 Key: CTAKES-318
>                 URL: https://issues.apache.org/jira/browse/CTAKES-318
>             Project: cTAKES
>          Issue Type: Bug
>          Components: ctakes-drug-ner
>            Reporter: Kim Ebert
>
> In ctakes-drug-ner/src/main/java/org/apache/ctakes/drugner/fsm/machines/elements/StrengthFSM.java
the Hashmap function below will eliminate values that start at the same start offset. Since
the iterator being used is from a Hashmap, the ordering may change from run to run. thus eliminating
a different value each time.
> while (overrideTokenItr1.hasNext()) {
> BaseToken t = (BaseToken) overrideTokenItr1.next();
> Integer key = new Integer(t.getStartOffset());
> overrideTokenMap1.put(key, t);
> }
> while (overrideTokenItr2.hasNext()) {
> BaseToken t = (BaseToken) overrideTokenItr2.next();
> Integer key = new Integer(t.getStartOffset());
> overrideTokenMap2.put(key, t);
> }



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

Mime
View raw message