robblecrunch

Results 1 issues of robblecrunch

我使用bert_base布署了二个服务,一是意图识别,效果非常好。 二是句子对相似性。识别效果不好,好像随机。我的代码如下: # coding=utf-8 import csv from bert_base.client import BertClient for row in open('./test.tsv'): tag = row.split('\t')[0].strip() str1=row.split('\t')[1].strip() str2=row.split('\t')[2].strip() with BertClient(show_server_config=False, check_version=False, check_length=False, mode="CLASS", port=7006, port_out=7007) as bc: res =...