Class GeoParser

  • All Implemented Interfaces:
    Serializable, org.apache.tika.parser.Parser

    public class GeoParser
    extends org.apache.tika.parser.AbstractParser
    See Also:
    Serialized Form
    • Constructor Detail

      • GeoParser

        public GeoParser()
    • Method Detail

      • getSupportedTypes

        public Set<org.apache.tika.mime.MediaType> getSupportedTypes​(org.apache.tika.parser.ParseContext parseContext)
      • initialize

        public void initialize​(GeoParserConfig geoParserConfig)
        Initializes this parser
        Parameters:
        geoParserConfig - config to load the url model from and set the gazetteer client
      • isAvailable

        public boolean isAvailable​(GeoParserConfig geoParserConfig)
      • getGazetteerRestEndpoint

        public String getGazetteerRestEndpoint()
      • setGazetteerRestEndpoint

        @Field
        public void setGazetteerRestEndpoint​(String gazetteerRestEndpoint)
      • getNerModelUrl

        public URL getNerModelUrl()
      • setNerModelUrl

        @Field
        public void setNerModelUrl​(String nerModelUrl)
        Parameters:
        nerModelUrl - url for the NER model
        Throws:
        IllegalArgumentException - for a malformed URL