# 预测英文观点抽取任务(基于SKEP-ERNIE2.0模型)
from senta import Senta
my_senta = Senta()
my_senta.init_model(model_class="roberta_skep_large_en", task="extraction", use_cuda=use_cuda)
texts = ["The JCC would be very pleased to welcome your organization as a corporate sponsor ."]
result = my_senta.predict(texts)
print(result)
为啥结果是[('The JCC would be very pleased to welcome your organization as a corporate sponsor .', ['O', 'I_H', 'B_DS', 'B_DS', 'B_DS', 'B_DS', 'I_T', 'I_T', 'I_T', 'I_T', 'I_T', 'I_T', 'I_T', 'O', 'O'])]
收藏
点赞
0
个赞
请登录后评论
TOP
切换版块
可以问下工作人员,文心的
着实有些看不懂了