Click Here for Example Jupyter Notebooks
Short Link to this gist - ela.st/operationalize-nlp
NER models can be used two ways in elasticsearch:
- On ingest, new documents can be run through an ingest pipeline, which sends one of the fields through the model, and the resulting entity fields are indexed along with the original document. This is useful later when you want to be able to quickly filter on an entity, or run aggregations, etc.
- Strings can be submitted directly to a model using the
_infer
endpoint. The string will be processed by the model and the response message will include any identified entities. Same output as #1, but this is done adhoc, and the results are not stored.