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

Datasets missing key 'rationale_labels' #15

Open
tarushbansal opened this issue Mar 5, 2023 · 1 comment
Open

Datasets missing key 'rationale_labels' #15

tarushbansal opened this issue Mar 5, 2023 · 1 comment

Comments

@tarushbansal
Copy link

I encounter the following error trace while running the train scripts as per the instructions:

Traceback (most recent call last):
File "src/train.py", line 77, in
df['rationale_labels'] = df['rationale_labels'].apply(lambda s: torch.tensor(np.asarray([int(i) for i in s.split(',')]), dtype=torch.long))
File "/home/tb662/env/project/lib/python3.8/site-packages/pandas/core/frame.py", line 3807, in getitem
indexer = self.columns.get_loc(key)
File "/home/tb662/env/project/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 3804, in get_loc
raise KeyError(key) from err
KeyError: 'rationale_labels'

I think the data might be missing the 'rationale_labels' column. Will be helpful if this could be fixed because currently I cannot train new models.

@syedwaleedhyder
Copy link

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

2 participants