MCPcopy Create free account
hub / github.com/brightmart/multi-label_classification / predict_single

Function predict_single

zuo/predict_similarity.py:20–75  ·  view source on GitHub ↗

通过预测得到标签的列表: 会综合使用多个标签或句子来做预测 :param sentence: 句子 :param category_en: 类别信息,如 'labor' : return: label_result_list: 预测除的标签. e.g. label_result_list=['LN1','LN13'] : return: tag_en_possibility_dict,这个模型融合时使用 e.g. tag_en_possibility_dict['LN1']=0.6

(sentence, category_en, candidate_list=None, threshold=0.5)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

predictFunction · 0.90

Calls 2

sentence_match_singleFunction · 0.90
get_allow_list_tagFunction · 0.85

Tested by

no test coverage detected