# Can I replicate "prodigy train --ner ds\_\<dataset\_name\> ./models --eval-split 0.25 -L" within Python?

**URL:** <https://support.prodi.gy/t/can-i-replicate-prodigy-train-ner-ds-dataset-name-models-eval-split-0-25-l-within-python/6854>\
**Category:** Uncategorized\
**Tags:** spacy, ner\
**Created:** [October 19, 2023, 7:30pm UTC](https://support.prodi.gy/t/can-i-replicate-prodigy-train-ner-ds-dataset-name-models-eval-split-0-25-l-within-python/6854 "2023-10-19T19:30:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ryanwesslen](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ryanwesslen/32/2969_2.png) [@ryanwesslen](https://support.prodi.gy/u/ryanwesslen)\
**Post date:** [October 19, 2023, 7:55pm UTC](https://support.prodi.gy/t/can-i-replicate-prodigy-train-ner-ds-dataset-name-models-eval-split-0-25-l-within-python/6854/2 "2023-10-19T19:55:46Z")

</div>

hi @wertzhayden!

Not sure what you mean by "recreate" -- do you just mean you want to look at the raw Python code for `prodigy train`? You can view all the built-in recipes by running `prodigy stats`, looking for `Location:`, then finding the `recipes` folder. `train.py` includes `prodigy train`.

As you'll see, `prodigy train` is just a wrapper for `spacy train`. The issue you may get is that `prodigy train` will redo the partitioning when doing `--eval-split`, which isn't ideal -- that is, each time you run `prodigy train`, you'll get a different result. That's why we typically only recommend `prodigy train` for quick-and-simple training but suggest using `data-to-spacy` then `spacy train` for more sophisticated workflows.

There are a lot of support issues that discuss this more. For example, this one I use an example showing how to replicate `prodigy train` with `spacy train` using a sample project:

> [@prodigy train result is different with the spacy train result, why?](https://support.prodi.gy/t/prodigy-train-result-is-different-with-the-spacy-train-result-why/5325/8):
>
> hi @sigitpurnomo! Sorry for the delayed response. We're trying to close out old issues. Regarding comparing prodigy train and spacy train, I recommend anyone interested to check out the Prodigy sample project: If you clone this repo, you can run two examples to compare spacy train and prodigy train. Using sample fashion data, you can run spacy train by running python -m spacy project run all This will load the data (db-in), export the data and config file (data-to-spacy), and spacy trai…

---

_[View the full topic](https://support.prodi.gy/t/can-i-replicate-prodigy-train-ner-ds-dataset-name-models-eval-split-0-25-l-within-python/6854)._
