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
你好,请问怎么进行中文数据集的有监督训练?输入命令是怎么样的? #12
Comments
你好,中文有监督训练因为不是之前的工作重心,所以我们还没进行过相关的实验。目前的代码也还需要做一些更改才能跑起来,同时一些模型超参、使用何种损失效果最好也需要做一些探索(我会在这周末尽快更新、做一些实验)。 如果你想尽快跑起来中文数据集的有监督训练,可以对代码做以下更改:
|
好的,谢谢 |
您好,请问这样修改后是按照论文里面哪种联合模式进行训练,体现在代码哪个地方?还是说变成使用传统交叉熵的训练方式(只使用AdvCLoftmaxLoss.py代码里面371行,而没有其他联合信息)? |
是的,这样就只是传统交叉熵损失训练。 |
感谢您的回答,受益良多 |
您好,我在按照您的所说的方法,在修改了main.py文件和data_utils.py的相关内容后进行中文数据集stsb的有监督训练,但是会出现下面的错误: |
请问一下,您有尝试使用stsb这个中文数据集进行有监督的训练吗? |
@HL0718 在main.py里把num_classes改成6,因为STSB包含0~5的评分,而其他的数据集基本都是二分类(0或者1)。 |
|
非常感谢您的细心回复,获益良多,十分感谢
…------------------ 原始邮件 ------------------
发件人: "yym6472/ConSERT" ***@***.***>;
发送时间: 2021年11月16日(星期二) 下午3:50
***@***.***>;
***@***.******@***.***>;
主题: Re: [yym6472/ConSERT] 你好,请问怎么进行中文数据集的有监督训练?输入命令是怎么样的? (#12)
@HL0718 说错了,是num_labels,在254-265行
非常感谢!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
你好,请问怎么进行中文数据集的有监督训练?输入命令是怎么样的?
The text was updated successfully, but these errors were encountered: