Senta 的观点抽取
崛起黑炎 发布于2022-02 浏览:904 回复:2
0
收藏
快速回复

# 预测英文观点抽取任务(基于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
个赞
共2条回复 最后由饭小团回复于2022-02
#3饭小团回复于2022-02

可以问下工作人员,文心的

0
#2何必固執回复于2022-02

着实有些看不懂了

0
TOP
切换版块