Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors when running probe_classifier.py #3

Open
YuJieF opened this issue Apr 23, 2023 · 0 comments
Open

errors when running probe_classifier.py #3

YuJieF opened this issue Apr 23, 2023 · 0 comments

Comments

@YuJieF
Copy link

YuJieF commented Apr 23, 2023

Hello, thanks a lot for your great work. When I run probe_classifier.py. There are some errors:
File "probe_classifier.py", line 205, in
train_X, train_y, dev_X, dev_y, test_X, test_y, feat_dim, num_classes, cat2id, id2cat = load_data()
File "probe_classifier.py", line 35, in load_data
feat_jsonl = json.loads(feat_jsonl)
File "/home/fang/anaconda3/envs/probe_env/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/home/fang/anaconda3/envs/probe_env/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/home/fang/anaconda3/envs/probe_env/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

And I have no idea how to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant