private Set<AnnotationUnit> getSubUnits(SubTokenAnno aSTA, Set<AnnotationUnit> aSubUnits) { AnnotationUnit prevUnit = null; List<AnnotationUnit> tmpUnits = new ArrayList<>(units); if(aSTA.getBegin() == aSTA.getEnd()){ AnnotationUnit newUnit = new AnnotationUnit(aSTA.getBegin(), aSTA.getEnd(), false, ""); for(AnnotationUnit unit: units){ if(unit.begin>=newUnit.begin && unit.end>=newUnit.end){ if (unit.end > aSTA.end) { if(unit.begin==aSTA.begin){ AnnotationUnit newUnit = new AnnotationUnit(aSTA.getBegin(), aSTA.getEnd(), false, aSTA.getText()); updateUnitLists(tmpUnits, unit, newUnit); if (unit.begin <= aSTA.getBegin() && aSTA.getBegin() <= unit.end && aSTA.getEnd() <= unit.end) { AnnotationUnit newUnit = new AnnotationUnit(aSTA.getBegin(), aSTA.getEnd(), false, aSTA.getText()); else if ((unit.begin <= aSTA.getBegin() && aSTA.getBegin() < unit.end && aSTA.getEnd() > unit.end)) {
if (aSTA.getBegin() == aSTA.getEnd()) { AnnotationUnit newUnit = new AnnotationUnit(aSTA.getBegin(), aSTA.getEnd(), false, ""); for (AnnotationUnit unit : units) { if (unit.begin >= newUnit.begin && unit.end >= newUnit.end) { if (unit.end > aSTA.end) { if (unit.begin == aSTA.begin) { AnnotationUnit newUnit = new AnnotationUnit(aSTA.getBegin(), aSTA.getEnd(), false, aSTA.getText()); updateUnitLists(tmpUnits, unit, newUnit); && aSTA.getEnd() <= unit.end) { AnnotationUnit newUnit = new AnnotationUnit(aSTA.getBegin(), aSTA.getEnd(), false, aSTA.getText()); && aSTA.getEnd() > unit.end)) {
if (aSTA.getBegin() == aSTA.getEnd()) { AnnotationUnit newUnit = new AnnotationUnit(aSTA.getBegin(), aSTA.getEnd(), false, ""); for (AnnotationUnit unit : units) { if (unit.begin >= newUnit.begin && unit.end >= newUnit.end) { if (unit.end > aSTA.end) { if (unit.begin == aSTA.begin) { AnnotationUnit newUnit = new AnnotationUnit(aSTA.getBegin(), aSTA.getEnd(), false, aSTA.getText()); updateUnitLists(tmpUnits, unit, newUnit); && aSTA.getEnd() <= unit.end) { AnnotationUnit newUnit = new AnnotationUnit(aSTA.getBegin(), aSTA.getEnd(), false, aSTA.getText()); && aSTA.getEnd() > unit.end)) {