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

使用原有数据测试时报错IndexError: list index out of range #19

Open
BestTao opened this issue Dec 2, 2023 · 0 comments
Open

Comments

@BestTao
Copy link

BestTao commented Dec 2, 2023

正在使用EDA生成增强语句...
Traceback (most recent call last):
File "C:\Users\HP-OMEN\Desktop\project\code\EDA_NLP_for_Chinese-master\EDA_NLP_for_Chinese-master\code\augment.py", line 54, in
gen_eda(args.input, output, alpha=alpha, num_aug=num_aug)
File "C:\Users\HP-OMEN\Desktop\project\code\EDA_NLP_for_Chinese-master\EDA_NLP_for_Chinese-master\code\augment.py", line 44, in gen_eda
sentence = parts[1]
IndexError: list index out of range

生成的output.txt文件内容为:
0 今天天气 很棒 哦 。
0 今天天气 不错 哦 。
0 哟 不错 哦 。
0 喔 不错 哦 。
0 今天天气 哈哈哈 不错 哦 。
0 今天天气 不错 吧 哦 。
0 今天天气 不错 哦
0 今天天气 不错 哦
0 今天天气 不错 。 哦
0 yoi 不错 哦 。
0 今天天气 不错 哦 呵呵 。
0 今儿个 今天天气 不错 哦 。
0 今天天气 很棒 哦 。
0 。 不错 哦 今天天气
0 今天天气 不错 哦 。
0 今天天气 不错 。 哦
0 今天天气 不错 哦 。

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