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

Question about SenLabel #3

Open
wpwpwpyo opened this issue Apr 14, 2022 · 4 comments
Open

Question about SenLabel #3

wpwpwpyo opened this issue Apr 14, 2022 · 4 comments

Comments

@wpwpwpyo
Copy link

Sorry to bother you .I have some question about running to script/run_few_shot_bert_prefix_sen_cls.sh at line 61,the train_SenLabel.py will raise "IndexError: list index out of range" at line 162.I check the detail and find that "test_data = SenLabelDataset(_C, _C.test_path, label_dict, tokenizer)" prints "Total instances 0"(But the line 154 "dev_data = SenLabelDataset(_C, _C.dev_path, label_dict, tokenizer)" works well,it prints "Total instances 960")

@Chaiyut1002
Copy link

Sorry to bother you .I have some question about running to script/run_few_shot_bert_prefix_sen_cls.sh at line 61,the train_SenLabel.py will raise "IndexError: list index out of range" at line 162.I check the detail and find that "test_data = SenLabelDataset(_C, _C.test_path, label_dict, tokenizer)" prints "Total instances 0"(But the line 154 "dev_data = SenLabelDataset(_C, _C.dev_path, label_dict, tokenizer)" works well,it prints "Total instances 960")

Hi, I have the same problem. You can try modifying line 75 of train_data_augmentation.py ( label = words[0].lower() ).

@GaryYufei
Copy link
Owner

Sorry to bother you .I have some question about running to script/run_few_shot_bert_prefix_sen_cls.sh at line 61,the train_SenLabel.py will raise "IndexError: list index out of range" at line 162.I check the detail and find that "test_data = SenLabelDataset(_C, _C.test_path, label_dict, tokenizer)" prints "Total instances 0"(But the line 154 "dev_data = SenLabelDataset(_C, _C.dev_path, label_dict, tokenizer)" works well,it prints "Total instances 960")

Can I have your training log and have a look?

@wpwpwpyo
Copy link
Author

Sorry to bother you .I have some question about running to script/run_few_shot_bert_prefix_sen_cls.sh at line 61,the train_SenLabel.py will raise "IndexError: list index out of range" at line 162.I check the detail and find that "test_data = SenLabelDataset(_C, _C.test_path, label_dict, tokenizer)" prints "Total instances 0"(But the line 154 "dev_data = SenLabelDataset(_C, _C.dev_path, label_dict, tokenizer)" works well,it prints "Total instances 960")

Can I have your training log and have a look?

图片

@GaryYufei
Copy link
Owner

Hi @wpwpwpyo, Could you try to run the code again? I have fixed the issue -- Due to a small bug, the output view prompt is never trained. So it produces wired outputs. I believe the current version should solve the problem

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

3 participants