EntityTagger keeps entities from previous sentences.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
RelEx |
Fix Released
|
Medium
|
linas |
Bug Description
I enable GATE and use "-g --g-post" options then parse the following two sentences in sequence:
Sue received a message from Joe.
Joe gave Sue a message.
That throws a SIOOB exception:
[java] Error: Failed to process sentence: Joe gave Sue a message.
[java] java.lang.
[java] at java.lang.
[java] at relex.entity.
[java] at relex.entity.
[java] at relex.MyRelatio
[java] at relex.MyRelatio
[java] at relex.MyRelatio
[java] RelEx processing: 14 milliseconds (avg=344 millisecs, cnt=6)
[java] Exception in thread "main" java.lang.
[java] at relex.MyRelatio
Changed in relex: | |
status: | Fix Committed → Fix Released |
The problem is that EntityTagger. orderedEntityIn fos has entries left in it from previous sentences. If there is an entity that had an index beyond the end of the current sentence then we get the SIOOB exception.
I tried to sort out the exact situation and tried using a new EntityTagger but that didn't work.
So I just added a reset call to wipe those entries out. I doubt this is the correct fix, but it got me working again.