Hi,
I'm running a modified version of the recipe at prodigy-recipes/ner/ner_manual.py at master · explosion/prodigy-recipes · GitHub (changed the name and made some other small modifications). While running the recipe, I encounter an error.
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/Users/sina/Documents/Earnin/projects/Payroll/prodigy/lib/python3.12/site-packages/prodigy/main.py", line 50, in
main()
File "/Users/sina/Documents/Earnin/projects/Payroll/prodigy/lib/python3.12/site-packages/prodigy/main.py", line 44, in main
controller = run_recipe(run_args)
^^^^^^^^^^^^^^^^^^^^
File "cython_src/prodigy/cli.pyx", line 135, 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 191, in prodigy.components.stream.Stream.is_empty
File "cython_src/prodigy/components/stream.pyx", line 230, in prodigy.components.stream.Stream.peek
File "cython_src/prodigy/components/stream.pyx", line 343, in prodigy.components.stream.Stream._get_from_iterator
File "cython_src/prodigy/components/source.pyx", line 755, in load_noop
File "cython_src/prodigy/components/source.pyx", line 109, in iter
File "cython_src/prodigy/components/source.pyx", line 110, in prodigy.components.source.Source.iter
File "cython_src/prodigy/components/source.pyx", line 365, in read
File "cython_src/prodigy/components/decorators.pyx", line 118, in inner
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/inspect.py", line 3242, in bind
return self._bind(args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/inspect.py", line 3231, in _bind
raise TypeError(
TypeError: got an unexpected keyword argument 'use_chars'
If I change the stream = add_tokens(nlp, stream, use_chars=highlight_chars) to stream = add_tokens(nlp, stream), the error clears and I can start the app, but I need the character-level annotation option to be available.
Any idea what may be the root cause and how I could solve this?
Thanks!