# Elastic plugin with pyton/spaCy

**URL:** <https://discuss.elastic.co/t/elastic-plugin-with-pyton-spacy/257852>\
**Category:** Elasticsearch\
**Created:** [December 7, 2020, 12:59pm UTC](https://discuss.elastic.co/t/elastic-plugin-with-pyton-spacy/257852 "2020-12-07T12:59:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alder](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alder/32/58170_2.png) [@Alder](https://discuss.elastic.co/u/Alder)\
**Post date:** [December 7, 2020, 12:59pm UTC](https://discuss.elastic.co/t/elastic-plugin-with-pyton-spacy/257852/1 "2020-12-07T12:59:28Z")

</div>

Hello everyone at Elastic.

With the help of this forum I developed an ingest pipline plugin with opennlp to process NER (named entity recognition).  
Now I'm doing tests with python/spaCy.

Is it possible to write a python plugin to use spaCy trained models?

Best regards,

Alder

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [December 7, 2020, 1:36pm UTC](https://discuss.elastic.co/t/elastic-plugin-with-pyton-spacy/257852/2 "2020-12-07T13:36:26Z")

</div>

Hi Alder.

> [@Alder](#):
>
> Is it possible to write a python plugin to use spaCy trained models?

Elasticsearch is written in Java so the challenge would be in writing a Java plugin that calls out to Python.  
Probably easiest to run a Python process outside of elasticsearch and prepare JSON documents there and send to elastic via the bulk API.

---

<div class="post-metadata">

**Author:** ![Alder](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alder/32/58170_2.png) [@Alder](https://discuss.elastic.co/u/Alder)\
**Post date:** [December 7, 2020, 1:53pm UTC](https://discuss.elastic.co/t/elastic-plugin-with-pyton-spacy/257852/3 "2020-12-07T13:53:46Z")

</div>

Hello Mark, thank you very much for the reply.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 4, 2021, 1:54pm UTC](https://discuss.elastic.co/t/elastic-plugin-with-pyton-spacy/257852/4 "2021-01-04T13:54:19Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
