load_metric from local "glue.py" meet error 'NoneType' object is not callable
NONE
@Frankie123421 what was the resolution to this?
2021-06-08T17:17:01Z
https://github.com/huggingface/datasets/issues/2117#issuecomment-856948992
https://api.github.com/repos/huggingface/datasets/issues/2117
MDEyOklzc3VlQ29tbWVudDg1Njk0ODk5Mg==
https://api.github.com/repos/huggingface/datasets/issues/comments/856948992/reactions
2021-06-08T17:17:01Z
https://api.github.com/repos/huggingface/datasets/issues/comments/856948992
https://avatars.githubusercontent.com/u/47401552?v=4
https://api.github.com/users/sam-writer/events{/privacy}
https://api.github.com/users/sam-writer/followers
https://api.github.com/users/sam-writer/following{/other_user}
https://api.github.com/users/sam-writer/gists{/gist_id}
https://github.com/sam-writer
sam-writer
MDQ6VXNlcjQ3NDAxNTUy
https://api.github.com/users/sam-writer/orgs
https://api.github.com/users/sam-writer/received_events
https://api.github.com/users/sam-writer/repos
https://api.github.com/users/sam-writer/starred{/owner}{/repo}
https://api.github.com/users/sam-writer/subscriptions
User
https://api.github.com/users/sam-writer
public
NONE
> @Frankie123421 what was the resolution to this?

use glue_metric.py instead of glue.py in load_metric
2021-08-25T01:17:49Z
https://github.com/huggingface/datasets/issues/2117#issuecomment-905093763
https://api.github.com/repos/huggingface/datasets/issues/2117
IC_kwDODunzps418qKD
https://api.github.com/repos/huggingface/datasets/issues/comments/905093763/reactions
2021-08-25T01:17:49Z
https://api.github.com/repos/huggingface/datasets/issues/comments/905093763
https://avatars.githubusercontent.com/u/54012361?v=4
https://api.github.com/users/Frankie123421/events{/privacy}
https://api.github.com/users/Frankie123421/followers
https://api.github.com/users/Frankie123421/following{/other_user}
https://api.github.com/users/Frankie123421/gists{/gist_id}
https://github.com/Frankie123421
Frankie123421
MDQ6VXNlcjU0MDEyMzYx
https://api.github.com/users/Frankie123421/orgs
https://api.github.com/users/Frankie123421/received_events
https://api.github.com/users/Frankie123421/repos
https://api.github.com/users/Frankie123421/starred{/owner}{/repo}
https://api.github.com/users/Frankie123421/subscriptions
User
https://api.github.com/users/Frankie123421
public
NONE
thank you!
2021-08-25T21:44:05Z
https://github.com/huggingface/datasets/issues/2117#issuecomment-905897224
https://api.github.com/repos/huggingface/datasets/issues/2117
IC_kwDODunzps41_uUI
https://api.github.com/repos/huggingface/datasets/issues/comments/905897224/reactions
2021-08-25T21:44:05Z
https://api.github.com/repos/huggingface/datasets/issues/comments/905897224
https://avatars.githubusercontent.com/u/47401552?v=4
https://api.github.com/users/sam-writer/events{/privacy}
https://api.github.com/users/sam-writer/followers
https://api.github.com/users/sam-writer/following{/other_user}
https://api.github.com/users/sam-writer/gists{/gist_id}
https://github.com/sam-writer
sam-writer
MDQ6VXNlcjQ3NDAxNTUy
https://api.github.com/users/sam-writer/orgs
https://api.github.com/users/sam-writer/received_events
https://api.github.com/users/sam-writer/repos
https://api.github.com/users/sam-writer/starred{/owner}{/repo}
https://api.github.com/users/sam-writer/subscriptions
User
https://api.github.com/users/sam-writer
public
actual_task = "mnli" if task == "mnli-mm" else task
dataset = load_dataset(path='/home/glue.py', name=actual_task)
metric = load_metric(path='/home/glue.py', name=actual_task)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-8-7ab77a465d81> in <module>
      1 actual_task = "mnli" if task == "mnli-mm" else task
      2 dataset = load_dataset(path='/home/jcli/glue.py', name=actual_task)
----> 3 metric = load_metric(path='/home/jcli/glue.py', name=actual_task)

~/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py in load_metric(path, config_name, process_id, num_process, cache_dir, experiment_id, keep_in_memory, download_config, download_mode, script_version, **metric_init_kwargs)
    508         keep_in_memory=keep_in_memory,
    509         experiment_id=experiment_id,
--> 510         **metric_init_kwargs,
    511     )
    512 

TypeError: 'NoneType' object is not callable

Please help