# not able to get the example running. https://github.com/explosion/projects/tree/master/ner-food-ingredients

**URL:** <https://support.prodi.gy/t/not-able-to-get-the-example-running-https-github-com-explosion-projects-tree-master-ner-food-ingredients/6999>\
**Category:** Uncategorized\
**Tags:** training\
**Created:** [December 18, 2023, 12:28am UTC](https://support.prodi.gy/t/not-able-to-get-the-example-running-https-github-com-explosion-projects-tree-master-ner-food-ingredients/6999 "2023-12-18T00:28:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![deewuok](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/deewuok/32/4274_2.png) [@deewuok](https://support.prodi.gy/u/deewuok)\
**Post date:** [December 18, 2023, 12:28am UTC](https://support.prodi.gy/t/not-able-to-get-the-example-running-https-github-com-explosion-projects-tree-master-ner-food-ingredients/6999/1 "2023-12-18T00:28:58Z")

</div>

py -m prodigy train --ner food\_data en\_vectors\_web\_lg ---paths.init\_tok2vec .\tok2vec\_cd8\_model289.bin --eval-split 0.2 --output tmp\_model

is not working... (I followed one of the discussions where --init\_tok2vec was replaced.

1. --output is not working
2. C:\Users\dwu\Documents\ner\_Prodigy\ner-food-ingredients\>py -m prodigy train --ner food\_data en\_vectors\_web\_lg ---paths.init\_tok2vec .\tok2vec\_cd8\_model289.bin --eval-split 0.2  
ℹ Using CPU

========================= Generating Prodigy config =========================  
ℹ Auto-generating config with spaCy  
✔ Generated training config

=========================== Initializing pipeline ===========================  
✘ Error parsing config overrides  
**-paths -\> init\_tok2vec not a section value that can be overridden**

I downloaded tok2vec\_cd8\_model289.bin it is the folder  
the first three steps seem to work just not the training step

(these are listed below just for reference )

1. Create a phrase list using seed terms. Requires [`sense2vec`](https://github.com/explosion/sense2vec/tree/master#recipe-sense2vecteach) and a vectors package.

```python
py -m prodigy sense2vec.teach food_terms ./s2v_reddit_2015_md --seeds "garlic, avocado, cottage cheese, olive oil, cumin, chicken breast, beef, iceberg lettuce"

```

1. Convert the phrase list to a match patterns file.

```python
py -m prodigy terms.to-patterns food_terms --label INGRED --spacy-model blank:en > ./food_patterns.jsonl

```

1. Label data manually with help from the patterns.

```python
py -m prodigy ner.manual food_data blank:en ./reddit_r_cooking_sample.jsonl --label INGRED --patterns food_patterns.jsonl

```

---

<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:** [December 20, 2023, 4:37pm UTC](https://support.prodi.gy/t/not-able-to-get-the-example-running-https-github-com-explosion-projects-tree-master-ner-food-ingredients/6999/2 "2023-12-20T16:37:52Z")

</div>

Hey @deewuok ,

You might have already seen my answer to the very same question [here](https://support.prodi.gy/t/command-line-error-while-pretraining-ner-food-ingredients-no-such-option-init-tok2vec/5579/4)

When you override config setting you should use double (not triple) dashes (I think there is spelling mistake in the original answer). So could you try:

```python
 py -m prodigy train --ner food_data en_vectors_web_lg --paths.init_tok2vec .\tok2vec_cd8_model289.bin --eval-split 0.2 --output tmp_model

```

Thanks!

---

<div class="post-metadata">

**Author:** ![deewuok](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/deewuok/32/4274_2.png) [@deewuok](https://support.prodi.gy/u/deewuok)\
**Post date:** [December 22, 2023, 7:05pm UTC](https://support.prodi.gy/t/not-able-to-get-the-example-running-https-github-com-explosion-projects-tree-master-ner-food-ingredients/6999/3 "2023-12-22T19:05:10Z")

</div>

Two New problems. Dont know if this is the best place to post or start a new thread. (I'll guess I'll start the new thread for the issue wit_h s2v\_reddit\_2015\_md.tar.gz and 01\_Preprocess\_Reddit.ipynb_. and just state the other issue here on **--output**

However

the command line you gave ran (except for **--output** ). says it cant find it.  
its _not a big deal_ just letting you, but it would be nice to know if there is way to specify it for the future.

py -m prodigy train --ner food\_data en\_vectors\_web\_lg --paths.init\_tok2vec .\tok2vec\_cd8\_model289.bin --eval-split 0.2 --output tmp\_model  
ℹ Using CPU  
Traceback (most recent call last):  
File "", line 198, in _run\_module\_as\_main  
File "", line 88, in run\_code  
File "C:\Users\dwu\AppData\Local\Programs\Python\Python311\Lib\site-packages\prodigy\_main.py", line 50, in   
main()  
File "C:\Users\dwu\AppData\Local\Programs\Python\Python311\Lib\site-packages\prodigy\_main_.py", line 44, in main  
controller = run\_recipe(run\_args)  
^^^^^^^^^^^^^^^^^^^^  
File "cython\_src\prodigy\cli.pyx", line 98, in prodigy.cli.run\_recipe  
File "cython\_src\prodigy\cli.pyx", line 99, in prodigy.cli.run\_recipe  
File "C:\Users\dwu\AppData\Local\Programs\Python\Python311\Lib\site-packages\prodigy\recipes\train.py", line 288, in train  
overrides = parse\_config\_overrides(list(\_extra))  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File "C:\Users\dwu\AppData\Local\Programs\Python\Python311\Lib\site-packages\spacy\cli\_util.py", line 108, in parse\_config\_overrides  
cli\_overrides = \_parse\_overrides(args, is\_cli=True)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File "C:\Users\dwu\AppData\Local\Programs\Python\Python311\Lib\site-packages\spacy\cli\_util.py", line 127, in \_parse\_overrides  
raise NoSuchOption(orig\_opt)  
click.exceptions.NoSuchOption: No such option: --output

[starting issue about s2v\_reddit\_2015\_md.tar.gz and 01\_Preprocess\_Reddit.ipynb in a new thread) and thank you for your help.

---

<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:** [January 3, 2024, 11:22am UTC](https://support.prodi.gy/t/not-able-to-get-the-example-running-https-github-com-explosion-projects-tree-master-ner-food-ingredients/6999/4 "2024-01-03T11:22:29Z")

</div>

Hi @deewuok,

I responded to your question about the input file in the dedicated thread [here](https://support.prodi.gy/t/ner-food-ingredients-tutorial-still-trying-to-get-it-to-run/7003/3). Hope it helps!

About the `train`command:  
To start with a tip: you can run the command with the `-h` flag ( for help) to quickly see all the available options. If you do that, you'll see that, indeed, there's no `--output` option. The location of the output model is the optional positional argument that should be listed first. So your command should be:

```python
python -m prodigy train ./tmp_model --ner food_data en_vectors_web_lg --eval-split 0.2 --paths.init_tok2vec=.\tok2vec_cd8_model289.bin

```

Also note that the config overrides ( `paths.init_tok2vec`) in your case, should appear at the end.
