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] [Created] (CTAKES-318) StrengthFSM
Date Tue, 07 Oct 2014 21:51:34 GMT
Kim Ebert created CTAKES-318:
--------------------------------

             Summary: StrengthFSM 
                 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