专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像 官方专业版轩辕镜像 官方专业版官方专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题
其他
关于我们网站地图

官方QQ群: 1072982923

热门搜索:openclaw🔥nginx🔥redis🔥mysqlopenjdkcursorweb2apimemgraphzabbixetcdubuntucorednsjdk
linto-platform-nlp-extractive-summarization

lintoai/linto-platform-nlp-extractive-summarization

lintoai

LinTO的提取式摘要NLP服务Docker镜像,基于linto-platform-nlp-core构建,支持REST API和Celery任务模式,可集成LinTO堆栈或独立部署,提供GPU/CPU支持,实现文本提取式摘要功能。

下载次数: 0状态:社区镜像维护者:lintoai仓库类型:镜像最近更新:2 年前
轩辕镜像,不浪费每一次拉取。点击查看
中文简介版本下载
轩辕镜像,不浪费每一次拉取。点击查看

linto-platform-nlp-extractive-summarization

镜像概述和主要用途

本镜像用于构建LinTO的NLP服务:提取式摘要,基于https://github.com/linto-ai/linto-platform-nlp-core%E5%BC%80%E5%8F%91%E3%80%82%E5%8F%AF%E4%B8%8Ehttps://github.com/linto-ai/linto-platform-stack%E4%B8%80%E5%90%8C%E9%83%A8%E7%BD%B2%EF%BC%8C%E4%B9%9F%E5%8F%AF%E7%8B%AC%E7%AB%8B%E9%83%A8%E7%BD%B2%EF%BC%88%E8%AF%A6%E8%A7%81%E4%B8%8B%E6%96%87%E5%BC%80%E5%8F%91%E9%83%A8%E5%88%86%EF%BC%89%E3%80%82

LinTO的NLP服务采用spaCy的核心设计理念:组件和管道。组件(位于components/目录下)与服务解耦,可轻松复用至其他spaCy项目,通过组织成管道实现特定NLP任务。

本服务支持两种启动方式:REST API和Celery任务,且提供GPU支持选项。

核心功能和特性

  • 基于spaCy架构:采用组件和管道设计,组件可复用
  • 双服务模式:支持REST API(HTTP)和Celery任务(task)两种运行模式
  • 硬件适配:支持GPU加速和纯CPU运行
  • 多语言支持:默认支持英语(en)和法语(fr)
  • 可配置摘要参数:支持调整摘要比例、句子数量、聚类算法等参数

使用场景和适用范围

适用于需要从文本中提取关键信息生成摘要的场景,如:

  • 新闻文章自动摘要
  • 文档内容提炼
  • 对话记录关键信息提取
  • 可集成到LinTO平台生态或作为独立微服务部署

使用方法和配置说明

部署准备

1. 下载模型

在主机上将模型下载到./assets目录(也可存储在其他位置),确保已安装https://git-lfs.github.com/%E5%B9%B6%E5%8F%AF%E5%9C%A8%60/usr/local/bin/git-lfs%60%E8%AE%BF%E9%97%AE%E3%80%82

bash
cd linto-platform-nlp-extractive-summarization/
bash scripts/download_models.sh

2. 配置环境变量

bash
cp .envdefault .env
环境变量描述默认值
APP_LANG应用支持的语言列表(空格分隔)fr en
ASSETS_PATH_ON_HOST主机上资产文件夹路径./assets
ASSETS_PATH_IN_CONTAINER容器内模型卷挂载点/app/assets
LM_MAP语言与对应语言模型的JSON映射字符串{"fr":"sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2","en":"sentence-transformers/all-MiniLM-L6-v2"}
SERVICE_MODE服务运行模式,"http"(REST API)或"task"(Celery任务)"http"
CONCURRENCY最大并发请求处理数1
USE_GPU是否使用GPU计算,"True"或"False"True
SERVICE_NAME微服务名称extsumm
SERVICES_BROKER微服务间通信的 broker 服务器URL"redis://localhost:6379"
BROKER_PASSbroker服务器访问密码None

构建镜像

bash
sudo docker build --tag lintoai/linto-platform-nlp-extractive-summarization:latest .

或使用docker-compose:

bash
sudo docker-compose build

运行容器

GPU支持模式

确保已安装NVIDIA Container Toolkit和GPU驱动。

bash
sudo docker run --gpus all \
--rm -p 80:80 \
-v $PWD/assets:/app/assets:ro \
--env-file .env \
lintoai/linto-platform-nlp-extractive-summarization:latest
纯CPU运行设置
  • 从命令中移除--gpus all
  • 在.env中设置USE_GPU=False

或使用docker-compose:

bash
sudo docker-compose up
纯CPU运行设置
  • 从docker-compose.yml中移除runtime: nvidia
  • 在.env中设置USE_GPU=False

服务验证

  • 若SERVICE_MODE=http,可通过浏览器访问http://localhost/docs或http://localhost/redoc查看交互式API文档
  • 若SERVICE_MODE=task,请参考文档末尾的Celery任务部分

API规范:http://localhost/extsumm/{lang}

支持的语言

{lang}模型大小
ensentence-transformers/all-MiniLM-L6-v280 MB
frsentence-transformers/paraphrase-multilingual-MiniLM-L12-v2418 MB

请求格式

使用" | "(左右各有一个空格)分隔文本片段(如句子、段落、文档等),作为提取式摘要的基本单元。

json
{
  "articles": [
    {
      "text": "The Chrysler Building, the famous art deco New York skyscraper, will be sold for a small fraction of its previous sales price. | The deal, first reported by The Real Deal, was for $150 million, according to a source familiar with the deal. | Mubadala, an Abu Dhabi investment fund, purchased 90% of the building for $800 million in 2008. | Real estate firm Tishman Speyer had owned the other 10%. | The buyer is RFR Holding, a New York real estate company. | Officials with Tishman and RFR did not immediately respond to a request for comments. | It's unclear when the deal will close. | The building sold fairly quickly after being publicly placed on the market only two months ago. | The sale was handled by CBRE Group. | The incentive to sell the building at such a huge loss was due to the soaring rent the owners pay to Cooper Union, a New York college, for the land under the building. | The rent is rising from $7.75 million last year to $32.5 million this year to $41 million in 2028. | Meantime, rents in the building itself are not rising nearly that fast. | While the building is an iconic landmark in the New York skyline, it is competing against newer office towers with large floor-to-ceiling windows and all the modern amenities. | Still the building is among the best known in the city, even to people who have never been to New York. | It is famous for its triangle-shaped, vaulted windows worked into the stylized crown, along with its distinctive eagle gargoyles near the top. | It has been featured prominently in many films, including Men in Black 3, Spider-Man, Armageddon, Two Weeks Notice and Independence Day. | The previous sale took place just before the 2008 financial meltdown led to a plunge in real estate prices. | Still there have been a number of high profile skyscrapers purchased for top dollar in recent years, including the Waldorf Astoria hotel, which Chinese firm Anbang Insurance purchased in 2016 for nearly $2 billion, and the Willis Tower in Chicago, which was formerly known as Sears Tower, once the world's tallest. | Blackstone Group (BX) bought it for $1.3 billion 2015. | The Chrysler Building was the headquarters of the American automaker until 1953, but it was named for and owned by Chrysler chief Walter Chrysler, not the company itself. | Walter Chrysler had set out to build the tallest building in the world, a competition at that time with another Manhattan skyscraper under construction at 40 Wall Street at the south end of Manhattan. He kept secret the plans for the spire that would grace the top of the building, building it inside the structure and out of view of the public until 40 Wall Street was complete. | Once the competitor could rise no higher, the spire of the Chrysler building was raised into view, giving it the title."
    },
    {
      "text": "Junk foods taste good that’s why it is mostly liked by everyone of any age group especially kids and school going children. | They generally ask for the junk food daily because they have been trend so by their parents from the childhood. | They never have been discussed by their parents about the harmful effects of junk foods over health. | According to the research by scientists, it has been found that junk foods have negative effects on the health in many ways. | They are generally fried food found in the market in the packets. | They become high in calories, high in cholesterol, low in healthy nutrients, high in sodium mineral, high in sugar, starch, unhealthy fat, lack of protein and lack of dietary fibers. | Processed and junk foods are the means of rapid and unhealthy weight gain and negatively impact the whole body throughout the life. | It makes able a person to gain excessive weight which is called as obesity. | Junk foods tastes good and looks good however do not fulfil the healthy calorie requirement of the body. | Some of the foods like french fries, fried foods, pizza, burgers, candy, soft drinks, baked goods, ice cream, cookies, etc are the example of high-sugar and high-fat containing foods. | It is found according to the Centres for Disease Control and Prevention that Kids and children eating junk food are more prone to the type-2 diabetes. | In type-2 diabetes our body become unable to regulate blood sugar level. | Risk of getting this disease is increasing as one become more obese or overweight. | It increases the risk of kidney failure. | Eating junk food daily lead us to the nutritional deficiencies in the body because it is lack of essential nutrients, vitamins, iron, minerals and dietary fibers. | It increases risk of cardiovascular diseases because it is rich in saturated fat, sodium and bad cholesterol. | High sodium and bad cholesterol diet increases blood pressure and overloads the heart functioning. | One who like junk food develop more risk to put on extra weight and become fatter and unhealthier. | Junk foods contain high level carbohydrate which spike blood sugar level and make person more lethargic, sleepy and less active and alert. | Reflexes and senses of the people eating this food become dull day by day thus they live more sedentary life. | Junk foods are the source of constipation and other disease like diabetes, heart ailments, clogged arteries, heart attack, strokes, etc because of being poor in nutrition. | Junk food is the easiest way to gain unhealthy weight. | The amount of fats and sugar in the food makes you gain weight rapidly. | However, this is not a healthy weight. | It is more of fats and cholesterol which will have a harmful impact on your health. | Junk food is also one of the main reasons for the increase in obesity nowadays.This food only looks and tastes good, other than that, it has no positive points. | The amount of calorie your body requires to stay fit is not fulfilled by this food. | For instance, foods like French fries, burgers, candy, and cookies, all have high amounts of sugar and fats. | Therefore, this can result in long-term illnesses like diabetes and high blood pressure. | This may also result in kidney failure. | Above all, you can get various nutritional deficiencies when you don’t consume the essential nutrients, vitamins, minerals and more. | You become prone to cardiovascular diseases due to the consumption of bad cholesterol and fat plus sodium. | In other words, all this interferes with the functioning of your heart. | Furthermore, junk food contains a higher level of carbohydrates. | It will instantly spike your blood sugar levels. | This will result in lethargy, inactiveness, and sleepiness. | A person reflex becomes dull overtime and they lead an inactive life. | To make things worse, junk food also clogs your arteries and increases the risk of a heart attack. | Therefore, it must be avoided at the first instance to save your life from becoming ruined.The main problem with junk food is that people don’t realize its ill effects now. | When the time comes, it is too late. | Most importantly, the issue is that it does not impact you instantly. | It works on your overtime; you will face the consequences sooner or later. | Thus, it is better to stop now.You can avoid junk food by encouraging your children from an early age to eat green vegetables. | Their taste buds must be developed as such that they find healthy food tasty. | Moreover, try to mix things up. | Do not serve the same green vegetable daily in the same style. | Incorporate different types of healthy food in their diet following different recipes. | This will help them to try foods at home rather than being attracted to junk food.In short, do not deprive them completely of it as that will not help. | Children will find one way or the other to have it. | Make sure you give them junk food in limited quantities and at healthy periods of time."
    }
  ]
}

响应格式

json
{
  "extsumm": [
    {
      "text": "The Chrysler Building, the famous art deco New York skyscraper, will be sold for a small fraction of its previous sales price. | The deal, first reported by The Real Deal, was for $150 million, according to a source familiar with the deal. | Mubadala, an Abu Dhabi investment fund, purchased 90% of the building for $800 million in 2008. | Real estate firm Tishman Speyer had owned the other 10%. | The buyer is RFR Holding, a New York real estate company. | Officials with Tishman and RFR did not immediately respond to a request for comments. | It's unclear when the deal will close. | The building sold fairly quickly after being publicly placed on the market only two months ago. | The sale was handled by CBRE Group. | The incentive to sell the building at such a huge loss was due to the soaring rent the owners pay to Cooper Union, a New York college, for the land under the building. | The rent is rising from $7.75 million last year to $32.5 million this year to $41 million in 2028. | Meantime, rents in the building itself are not rising nearly that fast. | While the building is an iconic landmark in the New York skyline, it is competing against newer office towers with large floor-to-ceiling windows and all the modern amenities. | Still the building is among the best known in the city, even to people who have never been to New York. | It is famous for its triangle-shaped, vaulted windows worked into the stylized crown, along with its distinctive eagle gargoyles near the top. | It has been featured prominently in many films, including Men in Black 3, Spider-Man, Armageddon, Two Weeks Notice and Independence Day. | The previous sale took place just before the 2008 financial meltdown led to a plunge in real estate prices. | Still there have been a number of high profile skyscrapers purchased for top dollar in recent years, including the Waldorf Astoria hotel, which Chinese firm Anbang Insurance purchased in 2016 for nearly $2 billion, and the Willis Tower in Chicago, which was formerly known as Sears Tower, once the world's tallest. | Blackstone Group (BX) bought it for $1.3 billion 2015. | The Chrysler Building was the headquarters of the American automaker until 1953, but it was named for and owned by Chrysler chief Walter Chrysler, not the company itself. | Walter Chrysler had set out to build the tallest building in the world, a competition at that time with another Manhattan skyscraper under construction at 40 Wall Street at the south end of Manhattan. He kept secret the plans for the spire that would grace the top of the building, building it inside the structure and out of view of the public until 40 Wall Street was complete. | Once the competitor could rise no higher, the spire of the Chrysler building was raised into view, giving it the title.",
      "extractive_summary": [
        "The sale was handled by CBRE Group.",
        "Meantime, rents in the building itself are not rising nearly that fast.",
        "It is famous for its triangle-shaped, vaulted windows worked into the stylized crown, along with its distinctive eagle gargoyles near the top.",
        "Walter Chrysler had set out to build the tallest building in the world, a competition at that time with another Manhattan skyscraper under construction at 40 Wall Street at the south end of Manhattan. He kept secret the plans for the spire that would grace the top of the building, building it inside the structure and out of view of the public until 40 Wall Street was complete."
      ]
    },
    {
      "text": "Junk foods taste good that’s why it is mostly liked by everyone of any age group especially kids and school going children. | They generally ask for the junk food daily because they have been trend so by their parents from the childhood. | They never have been discussed by their parents about the harmful effects of junk foods over health. | According to the research by scientists, it has been found that junk foods have negative effects on the health in many ways. | They are generally fried food found in the market in the packets. | They become high in calories, high in cholesterol, low in healthy nutrients, high in sodium mineral, high in sugar, starch, unhealthy fat, lack of protein and lack of dietary fibers. | Processed and junk foods are the means of rapid and unhealthy weight gain and negatively impact the whole body throughout the life. | It makes able a person to gain excessive weight which is called as obesity. |

查看更多 linto-platform-nlp-extractive-summarization 相关镜像 →

lintoai/linto-platform-stt logo

lintoai/linto-platform-stt

lintoai
LinTO-platform-stt是LinTO栈中的转录服务,可作为独立转录服务使用或在微服务架构中通过消息代理连接器部署,支持LinTO和Vosk模型,提供HTTP、任务和WebSocket三种服务模式,满足音频转录需求。
10万+ 次下载
2 年前更新
lintoai/linto-platform-nlp-core logo

lintoai/linto-platform-nlp-core

lintoai
linto-platform-nlp-core是一个核心Docker镜像,包含所有LinTO NLP服务(如命名实体识别、关键词提取、抽取式摘要、主题建模)的通用依赖。
5万+ 次下载
2 年前更新
lintoai/linto-stt-kaldi logo

lintoai/linto-stt-kaldi

lintoai
LinTO-STT-Kaldi是基于Kaldi训练模型的自动语音识别(ASR)API,支持作为独立转录服务或通过消息代理连接器部署于微服务架构,提供离线及实时转录功能。
1 次收藏5万+ 次下载
18 天前更新
lintoai/linto-platform-diarization logo

lintoai/linto-platform-diarization

lintoai
LinTO-platform-diarization是LinTO的说话人分轨服务,可作为独立HTTP服务或微服务部署,提供音频中说话人分离功能,支持自动或指定说话人数,通过API或消息代理处理任务。
10万+ 次下载
2 年前更新
lintoai/linto-stt-whisper logo

lintoai/linto-stt-whisper

lintoai
LinTO-STT-Whisper是基于Whisper模型的自动语音识别(ASR)API,可作为独立转录服务或通过消息代理连接器部署于微服务架构,支持离线及实时转录。
2 次收藏5万+ 次下载
18 天前更新
lintoai/linto-platform-nlp-topic-modeling logo

lintoai/linto-platform-nlp-topic-modeling

lintoai
linto-platform-nlp-topic-modeling是基于linto-platform-nlp-core构建的Docker镜像,提供NLP主题建模服务,采用spaCy组件化设计,支持REST API和Celery任务两种模式,多语言处理,可GPU加速,可与LinTO stack集成或独立部署。
5万+ 次下载
2 年前更新

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

Docker 配置

登录仓库拉取

通过 Docker 登录认证访问私有仓库

专属域名拉取

无需登录使用专属域名

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

Harbor 镜像源配置

Harbor Proxy Repository 对接专属域名

Portainer 镜像源配置

Portainer Registries 加速拉取

Nexus 镜像源配置

Nexus3 Docker Proxy 内网缓存

系统配置

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

MacOS OrbStack

MacOS OrbStack 容器配置

Docker Compose

Docker Compose 项目配置

NAS 设备

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

极空间

极空间 NAS 系统配置服务

网络设备

爱快路由

爱快 iKuai 路由系统配置

宝塔面板

在宝塔面板一键配置镜像

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

使用与功能问题

配置了专属域名后,docker search 为什么会报错?

docker search 限制

Docker Hub 上有的镜像,为什么在轩辕镜像网站搜不到?

站内搜不到镜像

机器不能直连外网时,怎么用 docker save / load 迁镜像?

离线 save/load

docker pull 拉插件报错(plugin v1+json)怎么办?

插件要用 plugin install

WSL 里 Docker 拉镜像特别慢,怎么排查和优化?

WSL 拉取慢

轩辕镜像安全吗?如何用 digest 校验镜像没被篡改?

安全与 digest

第一次用轩辕镜像拉 Docker 镜像,要怎么登录和配置?

新手拉取配置

错误码与失败问题

docker pull 提示 manifest unknown 怎么办?

manifest unknown

docker pull 提示 no matching manifest 怎么办?

no matching manifest(架构)

镜像已拉取完成,却提示 invalid tar header 或 failed to register layer 怎么办?

invalid tar header(解压)

Docker pull 时 HTTPS / TLS 证书验证失败怎么办?

TLS 证书失败

Docker pull 时 DNS 解析超时或连不上仓库怎么办?

DNS 超时

Docker 拉取出现 410 Gone 怎么办?

410 Gone 排查

出现 402 或「流量用尽」提示怎么办?

402 与流量用尽

Docker 拉取提示 UNAUTHORIZED(401)怎么办?

401 认证失败

遇到 429 Too Many Requests(请求太频繁)怎么办?

429 限流

docker login 提示 Cannot autolaunch D-Bus,还算登录成功吗?

D-Bus 凭证提示

为什么会出现「单层超过 20GB」或 413,无法加速拉取?

413 与超大单层

账号 / 计费 / 权限

轩辕镜像免费版和专业版有什么区别?

免费版与专业版区别

轩辕镜像支持哪些 Docker 镜像仓库?

支持的镜像仓库

镜像拉取失败还会不会扣流量?

失败是否计费

麒麟 V10 / 统信 UOS 提示 KYSEC 权限不够怎么办?

KYSEC 拦截脚本

如何在轩辕镜像申请开具发票?

申请开票

怎么修改轩辕镜像的网站登录和仓库登录密码?

修改登录密码

如何注销轩辕镜像账户?要注意什么?

注销账户

配置与原理类

写了 registry-mirrors,为什么还是走官方或仍然报错?

mirrors 不生效

怎么用 docker tag 去掉镜像名里的轩辕域名前缀?

去掉域名前缀

如何拉取指定 CPU 架构的镜像(如 ARM64、AMD64)?

指定架构拉取

用轩辕镜像拉镜像时快时慢,常见原因有哪些?

拉取速度原因

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
lintoai/linto-platform-nlp-extractive-summarization
博客公告Docker 镜像公告与技术博客
热门镜像查看热门 Docker 镜像推荐
一键安装一键安装 Docker 并配置镜像源
镜像拉取问题咨询请 提交工单,官方技术交流群:1072982923。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
镜像拉取问题咨询请提交工单,官方技术交流群:。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
商务合作:点击复制邮箱
©2024-2026 源码跳动
商务合作:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.