MAOE(More thA Oe Ecoder)是一个集预训练模型和任务模型为一体的模型。可以用于以下场景: 本模型主要用于给输入中文句子产出命名实体识别结果。用户可以自行尝试输入中文句子。具体调用方式请参考代码示例。 本模型支持实体类别较多,部分类别由于训练数据原因可能效果较低,请用户自行评测后决定如何使用。 在安装ModelScope完成之后, 可结合官方工具AdaSeq体验相关能力, 默认单句长度不超过256。 参考Adaseq模型训练示例, examples/twostage_er/cofigs/msra.yaml: 也可以在创空间快速尝试。https://www.modelscope.c/studios/damo/maoefsler/summary 本模型目前支持300+(目标1000+)种实体类型识别,具体标签集可以参考cofiguratio.jso文件。 待更新。MAOE介绍
What's New
模型描述
期望模型使用方式以及适用范围
模型局限性以及可能的偏差
如何使用
model:
type: sequece-labelig-model
embedder:
model_ame_or_path: damo/lp_maoe_amed-etity-recogitio_chiese-base-geeral
dataset:
data_file:
trai: https://www.modelscope.c/api/v1/datasets/damo/msra_er/repo/files?Revisio=master&FilePath=trai.txt
test: https://www.modelscope.c/api/v1/datasets/damo/msra_er/repo/files?Revisio=master&FilePath=test.txt
model:
type: sequece-labelig-model
embedder:
model_ame_or_path: damo/lp_maoe_amed-etity-recogitio_chiese-base-geeral
from modelscope.pipelies import pipelie
from modelscope.utils.costat import Tasks
from adaseq import pipelies
pipelie_is = pipelie(
Tasks.amed_etity_recogitio, 'damo/lp_maoe_amed-etity-recogitio_geeral'
)
prit(pipelie_is('姚明是中国篮协主席。'))
# {'output': [{'spa': '姚明', 'type': '人物/人物', 'start': 0, 'ed': 2}, {'spa': '中国篮协主席', 'type': '人物/指代/职位', 'start': 3, 'ed': 9}]}
实体标签介绍
相关论文以及引用信息
点击空白处退出提示







评论