sEntity = s;
break;
}
}
DocumentAnnotation docAnnot = null;
Collection<DocumentAnnotation> docAnnots =
JCasUtil.select(jCas, DocumentAnnotation.class);
if (!docAnnots.isEmpty())
{
Object[] docAnnotArray = docAnnots.toArray();
docAnnot = (DocumentAnnotation) docAnnotArray[0];
}
if (sEntity!=null) {
// but I actually need to find out if this sentence is preceded by
// a newline or if I have to find the preceding one that does.
if (docAnnot != null)
{
String doctext = docAnnot.getCoveredText();
int sentStart = sEntity.getBegin();
if (sentStart > 0)
{
boolean argInHistSection = false;