The problem is that EntityTagger.orderedEntityInfos 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.
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.