PaddleNLP icon indicating copy to clipboard operation
PaddleNLP copied to clipboard

[Question]: ernie_matching能否给出一个可以直接判断的函数

Open SamZhou-2019 opened this issue 1 year ago • 1 comments

请提出你的问题

examples/text_matching/ernie_matching 这个模型感觉很不错,但是实际用起来不方便。具体体现在: 训练好模型之后,如果要判断自己的数据,必须要将数据以“word1\tword2”的格式,存储为tsv文件后进行。而在实际处理数据时,反复存储数据会增加时间成本和外部存储器损耗。是否可以写一个函数,输入两个词即可判断。也就是相当于: def matching(word1:str, word2:str)->bool 个人能力有限写不出来,希望官方或者大神可以解答,万分感谢!

SamZhou-2019 avatar Dec 25 '23 12:12 SamZhou-2019

欢迎开发者贡献哈

w5688414 avatar Feb 05 '24 12:02 w5688414

This issue is stale because it has been open for 60 days with no activity. 当前issue 60天内无活动,被标记为stale。

github-actions[bot] avatar Apr 06 '24 00:04 github-actions[bot]