alibaba-edu / simple-effective-text-matching-pytorch

A pytorch implementation of the ACL2019 paper "Simple and Effective Text Matching with Richer Alignment Features".
Apache License 2.0
304 stars 54 forks source link

关于中文 #11

Open ljcnh opened 3 years ago

ljcnh commented 3 years ago

我现在想根据这个模型训练中文,请问需要什么步骤?我应该注意什么吗? 小白求大神们解答

hitvoice commented 3 years ago

没有什么特别的,用一个靠谱的中文词向量就好。

ljcnh commented 3 years ago

我不知道为什么一直报错:AssertionError: F1 and AUC are only valid for 2 classes. 主要是因为这个断言 这个有什么用吗? assert args.num_classes == 2 or ('f1' not in args.watch_metrics and 'auc' not in args.watch_metrics), \ f'F1 and AUC are only valid for 2 classes.'

hitvoice commented 3 years ago

F1 和AUC只能用于二分类任务

Tom-Wangyoucai commented 2 years ago

bro,你是怎么训练中文的可以告诉我一下吗

zy614582280 commented 2 years ago

我在中文数据集上训练,一个batch的损失值高达1W4,不知道哪里出的问题.....

hitvoice commented 2 years ago

@zy614582280 亲,我们暂不提供开源数据集之外的技术支持哦~