CAS cas = ae.newCAS();
cas.setDocumentText(FileUtils.file2String(textFile, "UTF-8"));
Type typeCW = cas.getTypeSystem().getType("org.apache.uima.ruta.type.CW");
Type typeSW = cas.getTypeSystem().getType("org.apache.uima.ruta.type.SW");
cas.addFsToIndexes(cas.createAnnotation(typeCW, 0, 5));
cas.addFsToIndexes(cas.createAnnotation(typeCW, 7, 13));
cas.addFsToIndexes(cas.createAnnotation(typeCW, 15, 18));
cas.addFsToIndexes(cas.createAnnotation(typeSW, 19, 22));
cas.addFsToIndexes(cas.createAnnotation(typeCW, 23, 28));