### Named Entity Models

Research labs and product teams intent on building upon openNLP and SOLR (which can consume an openNLP NameFinder model) frequently find it important to generate their own model parser or model builder classes. openNLP has in-built capabilities for this but in the case of custom parsers the structure of the openNLP NameFinder model must be known.

The NameFinder model is defined by the GISModel class which extends AbstractModel and the definition and interfaces exposed can be found in the openNLP api docs on the Apache site. The structure as below is composed of an indicator of Model type, a correction constant, model outcomes, and model predicates. Models for NameFinder can be downloaded free from the openNLP project and are trained against generic corpora.

### openNLP NameFinder Model Structure

- The type identifier, GIS (literal)
- The model correction constant (int)
- Model correction constant parameter (double)
- Outcomes
- The number of outcomes (int)
- The outcome names (string array, length of which is specified in 4.1. above)

- Predicates
- Outcome patterns
- The number of outcome patterns (int)
- The outcome pattern values (each stored in a space delimited string)

- The predicate labels
- The number of predicates (int)
- The predicate names (string array, length of which is specified in 5.2.1. above)

- Predicate parameters (double values)

- Outcome patterns