- triples = classifier.get().classifyToCharacterOffsets(str);
- for (Triple<String, Integer, Integer> t: triples) {
- w = str.substring(t.second, t.third);
- if (!entities.contains(w))
- entities.add(w);
- }
+ triples = classifier.classifyToCharacterOffsets(str);
+ }
+
+ for (Triple<String, Integer, Integer> t: triples) {
+ w = str.substring(t.second, t.third);
+ if (!entities.contains(w))
+ entities.add(w);