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

自己数据集出现ValueError: too many values to unpack (expected 2)问题 #60

Open
nameless1165180163 opened this issue Apr 1, 2024 · 2 comments

Comments

@nameless1165180163
Copy link

博主你好,我想请问一下final_data中的三个.pkl文件是怎么生成的?我在cner/raw_data中的process.py中调用utils.commonUtils中自定义的save_pkl函数后生成final_data文件夹中的三个.pkl文件,然后使用BiLSTM-CRF模型对于数据进行训练时出现错误显示main.py中“train_features, train_callback_info = commonUtils.read_pkl(data_path, 'train')”语句有误,请问一下这三个pkl文件该怎么生成
crf

@taishan1994
Copy link
Owner

有的数据有问题,检查下。

@nameless1165180163
Copy link
Author

博主你好 我在替换使用cner里面的数据集进行数据处理时,也出现了这个问题。而且我在输出final_data目录下的train.pkl数据类型的时候,显示的是需要BertFeature模块,所以我想请问一下那三个pkl文件到底是怎么生成的?

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