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.

TypeError: get_hash() missing 1 required positional argument: 'use_fast_tokenizer'

See original GitHub issue

I generated some predictions for fetaqa task. Then I tried to run its evaluator on the output results (predictions_predict.json). I get the following error for bertscore metric.

File "/home/pouramini/anaconda3/envs/uni/lib/python3.7/site-packages/datasets/metric.py", line 402, in compute
    output = self._compute(predictions=predictions, references=references, **kwargs)
  File "/home/pouramini/.cache/huggingface/modules/datasets_modules/metrics/bertscore/ad3c901af4d4f2c58af08db5c6aae5af2a3668edcf7c8f3fa9419c22807ad482/bertscore.py", line 147, in _compute
    use_custom_baseline=baseline_path is not None,
TypeError: get_hash() missing 1 required positional argument: 'use_fast_tokenizer'

There could be a mismatch between datasets metrics and bertscore, however I tried to install the versions in yaml.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Timothyxxxcommented, Apr 22, 2022

Okay, feel free to re-open this if you encounter further problem in the future.

0reactions
puraminycommented, Apr 22, 2022

Thanks, before reading your comment I tried datasets 1.18.3 and the problem was resolved, I will try the version you said

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error "TypeError: FirstForm() missing 1 required positional ...
Your view has the same name as the form, hence if you call FirstForm , you will call the view, not the form....
Read more >
use_custom_baseline still produces errors for bertscore #843
... num_layers, idf, rescale_with_baseline) TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'.
Read more >
create_dataset() missing 1 required positional argument: 'type'
Hi,. The argument is not called "name" but "dataset_name", so you can use either: create_dataset("administration", "Filesystem").
Read more >
typeError missing 1 required positional argument:'model'
This line is clearly passing arguments for "rel_model" and "related_name", but the error says that the definition requires an argument named ' ...
Read more >
TypeError: tr() missing 1 required positional argument: 'txt'
TypeError : tr() missing 1 required positional argument: 'txt' ... I am trying to execute the SDG indicator 15.3.1 and I got the...
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