code: public List<LocationOccurrence> extractLocationNames(String text) {
          if (text == null)
              throw new IllegalArgumentException("text input to extractLocationNames should not be null");
  
          // extract entities as <Entity Type, Start Index, Stop Index>
          return convertNERtoCLAVIN(namedEntityRecognizer.classifyToCharacterOffsets(text), text);
      }
docs: Get extracted locations from a plain-text body.
  
  @param text      Text content to perform extraction on.
  @return          List of extracted Location Occurrences.