for (Triple<String, Integer, Integer> t: triples) {
w = str.substring(t.second, t.third);
if (!config.isBlacklistedEntity(w) && !entities.contains(w))
for (Triple<String, Integer, Integer> t: triples) {
w = str.substring(t.second, t.third);
if (!config.isBlacklistedEntity(w) && !entities.contains(w))