You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ginza -m ja_ginza -dTraceback (most recent call last): File "/Users/matsuda/test/venv/bin/ginza", line 33, in <module> sys.exit(load_entry_point('ginza==5.0.0', 'console_scripts', 'ginza')()) File "/Users/matsuda/test/venv/lib/python3.9/site-packages/ginza/command_line.py", line 489, in main_ginza plac.call(run_ginza) File "/Users/matsuda/test/venv/lib/python3.9/site-packages/plac_core.py", line 427, in call cmd, result = parser.consume(arglist) File "/Users/matsuda/test/venv/lib/python3.9/site-packages/plac_core.py", line 278, in consume return cmd, self.func(*(args + varargs + extraopts), **kwargs) File "/Users/matsuda/test/venv/lib/python3.9/site-packages/ginza/command_line.py", line 473, in run_ginza run( File "/Users/matsuda/test/venv/lib/python3.9/site-packages/ginza/command_line.py", line 79, in run analyzer.set_nlp() File "/Users/matsuda/test/venv/lib/python3.9/site-packages/ginza/command_line.py", line 205, in set_nlp nlp.add_pipe(disable_sentencizer, before="parser") File "/Users/matsuda/test/venv/lib/python3.9/site-packages/spacy/language.py", line 758, in add_pipe raise ValueError(err)ValueError: [E966] `nlp.add_pipe` now takes the string name of the registered component factory, not a callable component. Expected string, but got <function Analyzer.set_nlp.<locals>.disable_sentencizer at 0x7fb393616940> (name: 'None').- If you created your component with `nlp.create_pipe('name')`: remove nlp.create_pipe and call `nlp.add_pipe('name')` instead.- If you passed in a component like `TextCategorizer()`: call `nlp.add_pipe` with the string name instead, e.g. `nlp.add_pipe('textcat')`.- If you're using a custom component: Add the decorator `@Language.component` (for function components) or `@Language.factory` (for class components / factories) to your custom component and assign it a name, e.g. `@Language.component('your_name')`. You can then run `nlp.add_pipe('your_name')` to add it to the pipeline.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: