code: public static List<LocationOccurrence> convertNERtoCLAVIN
              (List<Triple<String, Integer, Integer>> entities, String text) {
  
          List<LocationOccurrence> locations = new ArrayList<LocationOccurrence>();
  
          if (entities != null) {
              // iterate over each entity Triple
              for (Triple<String, Integer, Integer> entity : entities) {
                  // check if the entity is a "Location"
                  if (entity.first.equalsIgnoreCase("LOCATION")) {
                      // build a LocationOccurrence object
                      locations.add(new LocationOccurrence(text.substring(entity.second, entity.third), entity.second));
                  }
              }
          }
  
          return locations;
      }
docs: Converts output from Stanford NER to input required by CLAVIN resolver.
  
  @param entities  A List&lt;Triple&lt;String, Integer, Integer&gt;&gt; from Stanford NER
  @param text      text content processed by Stanford NER + CLAVIN resolver
  @return          List&lt;LocationOccurrence&gt; used by CLAVIN resolver