Downloads · 30 days
19
3% of all-time downloads
xusenlin/duee-gplinker
duee-gplinker is a machine learning model from xusenlin. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
19
3% of all-time downloads
All-time downloads
650
Public
Repo size
816 MB
Likes
0
Public
Click a slice to open those files.
.bin408 MB · 100%
From the Hugging Face model README
数据集:百度 DUEE 信息抽取
pip install litie
from pprint import pprint
from litie.pipelines import EventExtractionPipeline
pipeline = EventExtractionPipeline("gplinker", model_name_or_path="xusenlin/duee-gplinker", model_type="bert")
text = "油服巨头哈里伯顿裁员650人 因美国油气开采活动放缓。"
pprint(pipeline(text))
# 输出
[
[
{
"event_type": "组织关系-裁员",
"arguments": [
{
"role": "裁员人数",
"argument": "650人"
},
{
"role": "裁员方",
"argument": "油服巨头哈里伯顿"
}
]
}
]
]
模型训练和推理的详细代码见 litie