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

关于utils.py中dataloader错误的纠正 #1

Open
zhanghaok opened this issue Feb 21, 2022 · 2 comments
Open

关于utils.py中dataloader错误的纠正 #1

zhanghaok opened this issue Feb 21, 2022 · 2 comments

Comments

@zhanghaok
Copy link

zhanghaok commented Feb 21, 2022

大佬您好,看了你的代码很赞。
不过今天在学习的时候,发现一点小问题
utils.py的第223行此处loader = DataLoader(ner, batch_size=config.batch_size, shuffle=True)代码有误。
应该改为loader = DataLoader(ner, batch_size=config.batch_size, shuffle=True,collate_fn=collate_fn)

@xuyouqian
Copy link
Owner

xuyouqian commented Feb 22, 2022 via email

@zhanghaok
Copy link
Author

zhanghaok commented Feb 22, 2022 via email

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