} else {
if(queuedEntityText!=null && lastEntityType!=null){
//TODO: figure out if we need the character index here or not
switch(lastEntityType){
case "PERSON":
entities.addPerson(new PersonOccurrence(queuedEntityText, 0));
break;
case "LOCATION":
entities.addLocation(new SentenceLocationOccurrence(queuedEntityText, storySentencesId));
break;
case "ORGANIZATION":