TypeError: get_hash() missing 1 required positional argument: 'use_fast_tokenizer'
See original GitHub issueI 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:
- Created a year ago
- Comments:5 (3 by maintainers)
Top 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 >
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
Okay, feel free to re-open this if you encounter further problem in the future.
Thanks, before reading your comment I tried datasets
1.18.3
and the problem was resolved, I will try the version you said