# Is there any way to train a model directly from SpaCy without using Prodigy after annotation?

**URL:** https://support.prodi.gy/t/is-there-any-way-to-train-a-model-directly-from-spacy-without-using-prodigy-after-annotation/7233
**Category:** Uncategorized
**Tags:** spacy, ner
**Created:** [May 20, 2024, 11:46am UTC](https://support.prodi.gy/t/is-there-any-way-to-train-a-model-directly-from-spacy-without-using-prodigy-after-annotation/7233 "2024-05-20T11:46:30Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![dhavalv83](https://avatars.discourse-cdn.com/v4/letter/d/8baadc/32.png) [@dhavalv83](https://support.prodi.gy/u/dhavalv83)
#### Post date: [May 20, 2024, 11:46am UTC](https://support.prodi.gy/t/is-there-any-way-to-train-a-model-directly-from-spacy-without-using-prodigy-after-annotation/7233/1 "2024-05-20T11:46:30Z")

</div>

We are using Prodigy at the edge level where we can't use Prodigy or disclose the license. Therefore, we need to train the model directly from SpaCy after exporting the annotations from the database. Is there any way to do this?

---

<div class="post-metadata">

### Author: ![magdaaniol](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/magdaaniol/32/2787_2.png) [@magdaaniol](https://support.prodi.gy/u/magdaaniol)
#### Post date: [May 20, 2024, 1:02pm UTC](https://support.prodi.gy/t/is-there-any-way-to-train-a-model-directly-from-spacy-without-using-prodigy-after-annotation/7233/2 "2024-05-20T13:02:00Z")

</div>

Hi @dhavalv83,

Of course! In fact, it is a recommended workflow for more complex training scenarios. You can export the data directly to spaCy DocBin format using [`data-to-spacy`](https://prodi.gy/docs/recipes#data-to-spacy) command and then you can train directly with [spaCy train](https://spacy.io/api/cli#train).  
To makes things easier, `prodigy-to-spacy` will also generate the training config for spaCy that you can of course customize if needed.
