run_ner.py raised error
See original GitHub issueEnvironment info
transformers
version: 4.3.0.dev0- Platform: MacOS
- Python version: 3.6
- PyTorch version (GPU?): 1.7.1
- Tensorflow version (GPU?): 2.4.1
- Using GPU in script?: No
- Using distributed or parallel set-up in script?: No
Who can help
Examples:
- maintained examples (not research project or legacy): @sgugger, @patil-suraj
To reproduce
Steps to reproduce the behavior:
- bash run.sh to run_ner.py
Error
ReferenceError: {'help': 'The name of the task (ner, pos...).'} does not reference a class __dict__
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
8. Errors and Exceptions — Python 3.11.1 documentation
There are (at least) two distinguishable kinds of errors: syntax error... ... except Exception as err: print(f"Unexpected {err=}, {type(err)=}") raise.
Read more >python - have error when execute runner.py (when try to ...
The error you see is because you run the script with python3, which is probably the default python on your system.
Read more >[tune] Function Runner Runner Thread Error Message ...
Specifically, the Runner thread error message is never shown. ... File "/ray/python/ray/tune/function_runner.py", line 75, in run raise e ...
Read more >How to Throw Exceptions in Python - Rollbar
This article will show you how to raise exceptions in your Python code and how to address exceptions. Difference Between Python Syntax Errors...
Read more >Running test with pytest runner on PyCharm writes error on ...
def test_error(): raise Exception(). Python detected. When running this test from the terminal (or another IDE) the output is as desired (no duplication)....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank you, @lhoestq @sgugger @patil-suraj @stefan-it It works by updating
dill
from0.2.9
to0.3.3
.Hi ! Can you try updating
dill
? It looks like one of their issues from 2019 that has been fixed now.