Open shengwenyuan opened 2 years ago
main.py的332行附近代码有误,按位置传参时在实现bi1=batch_y["tags"],应该改为 else: out = model(batch_x["task"],batch_x["uni"],batch_x["seq_len"],tags=batch_y["tags"]) 另外提供预训练embedding参考链接 https://ai.tencent.com/ailab/nlp/zh/embedding.html
else: out = model(batch_x["task"],batch_x["uni"],batch_x["seq_len"],tags=batch_y["tags"])
There is a piece of wrong code at line 332 in main.py. When removing two parameters bi1 and bi2, tags is delivered incorrectly.
Thank you for pointing out!
main.py的332行附近代码有误,按位置传参时在实现bi1=batch_y["tags"],应该改为
else: out = model(batch_x["task"],batch_x["uni"],batch_x["seq_len"],tags=batch_y["tags"])
另外提供预训练embedding参考链接 https://ai.tencent.com/ailab/nlp/zh/embedding.htmlThere is a piece of wrong code at line 332 in main.py. When removing two parameters bi1 and bi2, tags is delivered incorrectly.