question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

run_ner.py raised error

See original GitHub issue

Environment 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:

To reproduce

Steps to reproduce the behavior:

  1. 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:closed
  • Created 3 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
gongelcommented, Feb 5, 2021

Thank you, @lhoestq @sgugger @patil-suraj @stefan-it It works by updating dill from 0.2.9 to 0.3.3.

0reactions
lhoestqcommented, Feb 5, 2021

Hi ! Can you try updating dill ? It looks like one of their issues from 2019 that has been fixed now.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found