Hi!
I am trying to follow this example:
This is how I call prodigy:
prodigy textcat.teach \
toy_example \
blank:en \
./test.jsonl \
--label RELEVANT,IRRELEVANT \
--patterns ./test-patterns.jsonl
I am getting the following error:
Using 2 label(s): RELEVANT, IRRELEVANT
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/ubuntu/git/eagle-train/venv/lib/python3.10/site-packages/prodigy/__main__.py", line 50, in <module>
main()
File "/home/ubuntu/git/eagle-train/venv/lib/python3.10/site-packages/prodigy/__main__.py", line 44, in main
controller = run_recipe(run_args)
File "cython_src/prodigy/cli.pyx", line 110, in prodigy.cli.run_recipe
File "cython_src/prodigy/core.pyx", line 155, in prodigy.core.Controller.from_components
File "cython_src/prodigy/core.pyx", line 307, in prodigy.core.Controller.__init__
File "cython_src/prodigy/components/stream.pyx", line 189, in prodigy.components.stream.Stream.is_empty
File "cython_src/prodigy/components/stream.pyx", line 204, in prodigy.components.stream.Stream.peek
File "cython_src/prodigy/components/stream.pyx", line 317, in prodigy.components.stream.Stream._get_from_iterator
File "cython_src/prodigy/components/sorters.pyx", line 129, in prodigy.components.sorters.ExpMovingAverage.__next__
File "cython_src/prodigy/components/sorters.pyx", line 132, in __iter__
File "cython_src/prodigy/components/sorters.pyx", line 14, in genexpr
File "cython_src/prodigy/util.pyx", line 569, in predict
TypeError: 'tuple' object is not callable
Versions: prodigy-1.14.4 spacy-3.6.1
I appended the files that I am using
test-patterns.jsonl (40 Bytes)
test.jsonl (64 Bytes)
I am not sure what I am doing wrong here?