
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
本Docker镜像用于创建完整且更新的Stanford CoreNLP Server,开放9000端口,基于最新版本的CoreNLP压缩包构建。关于服务器的详细使用说明可参考http://stanfordnlp.github.io/CoreNLP/corenlp-server.html%EF%BC%8CDockerfile%E6%BA%90%E7%A0%81%E5%8F%AF%E5%9C%A8GitHub%E4%BB%93%E5%BA%93%E8%8E%B7%E5%8F%96%EF%BC%9Ahttps://github.com/grahamimac/corenlp-complete-docker%E3%80%82
支持多种自然语言处理任务,包括:
需先安装Docker。执行以下命令启动服务器(若无超级用户权限,需在命令前添加sudo):
docker run -itd -p 9000:9000 --name corenlp graham3333/corenlp-complete
若需与其他容器协同运行,可修改命令如下:
docker run -itPd --name corenlp --link other_container_name:other_container_name graham3333/corenlp-complete
服务启动后,可通过http://0.0.0.0:9000访问本地服务。以下是测试服务可用性的示例:
Bash(Windows命令提示符/Mac终端)
使用wget:
wget --post-data 'The quick brown fox jumped over the lazy dog.' 'localhost:9000/?properties={"annotators":"tokenize,ssplit,pos","outputFormat":"json"}' -O -
或使用curl:
curl --data 'The quick brown fox jumped over the lazy dog.' 'http://localhost:9000/?properties={%22annotators%22%3A%22tokenize%2Cssplit%2Cpos%22%2C%22outputFormat%22%3A%22json%22}' -o -
Python(需先安装requests:pip install requests)
pythonimport requests import json params = {'properties':'{"annotators": "tokenize,ssplit,lemma,pos,ner,depparse,openie,sentiment"}'} url = 'http://localhost:9000/' # 从CoreNLP获取句子信息 text = 'The quick brown fox jumped over the lazy dog.' r = requests.post(url, data=text, params=params, timeout=60) data = json.loads(r.text) print(json.dumps(data, sort_keys=True,indent=4, separators=(',', ': ')))
R(需先安装httr:install.packages("httr"))
rlibrary(httr) url = 'http://localhost:9000/' query = '{"annotators": "tokenize,ssplit,lemma,pos,ner,depparse,openie,sentiment"}' text = 'The quick brown fox jumped over the lazy dog.' r = POST(url, query = list(properties = query), body = text, encode = "form") content(r)
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。




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