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

使用K-bert做文本分类无法指定分类类别 #318

Open
shishijier opened this issue Jun 7, 2023 · 1 comment
Open

使用K-bert做文本分类无法指定分类类别 #318

shishijier opened this issue Jun 7, 2023 · 1 comment

Comments

@shishijier
Copy link

通过修改 examples/kbert/run_cls.sh 这个文件下的 label_enumerate_values 改变模型分类个数。
自己数据集一共是10种类别,值为0-9,但是运行会报错。
通过打印logits 的值发现,模型输出依然是二分类。logits形状为[batch_size,2]
如何改变分类类别?

@chywang
Copy link
Collaborator

chywang commented Jun 8, 2023

@ztl-35

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