Skip to content

errors when running probe_classifier.py #3

@YuJieF

Description

@YuJieF

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions