public void initialize(GeoParserConfig geoParserConfig) {
        try {
            if (this.modelUrl != null && this.modelUrl.toURI().equals(modelUrl.toURI())) {
                return;
            }
        } catch (URISyntaxException e1) {
            throw new RuntimeException(e1.getMessage());
        }

        this.modelUrl = geoParserConfig.getNerModelUrl();
        gazetteerClient = new GeoGazetteerClient(geoParserConfig);

        // Check if the NER model is available, and if the
        //  lucene-geo-gazetteer is available
        this.available = modelUrl != null && gazetteerClient.checkAvail();

        if (this.available) {
            try {
                TokenNameFinderModel model = new TokenNameFinderModel(modelUrl);
                this.nameFinder = new NameFinderME(model);
            } catch (Exception e) {
                LOG.warn("Named Entity Extractor setup failed: {}", e.getMessage(), e);
                this.available = false;
            }
        }
        initialized = true;
    }
Initializes this parser

@param geoParserConfig config to load the url model from and set the gazetteer client
tika-parsers/tika-parsers-ml/tika-parser-nlp-module/src/main/java/org/apache/tika/parser/geo/topic/GeoParser.java