NER Service — 命名实体识别服务

概述

基于 GLiNER (Generalist and Lightweight Model for NER) 的零样本命名实体识别服务。无需预定义实体类型,运行时指定实体类别即可识别。

模型

  • GLiNER Multitask Large v0.5
  • 路径: /mnt/disk0/yumoqing/models/gliner-multitask-large-v0.5

API

端点 方法 说明
/api/status GET 服务状态和模型信息
/api/extract POST 实体抽取

请求示例

POST /api/extract
{
    "text": "张三在ABC公司担任技术总监",
    "labels": ["person", "company", "position"]
}

部署

cd /data/ymq/ner-service
bash build.sh
sudo systemctl restart ner-service

端口

9093

Description
No description provided
Readme 32 KiB
Languages
Python 100%