ITA Controlled English (CE)

Hacker News Top 工具

摘要

ITA Controlled English (CE) 是一种结构化英语语言,用于定义人类和机器可读模型,CE Store 是 IBM 提供的一个用于处理 CE 的开源环境。

暂无内容
查看原文
查看缓存全文

缓存时间: 2026/09/04 00:01

ce-store/ce-store 来源:https://github.com/ce-store/ce-store

ITA受控英语 (CE)

受控英语是一种结构化的英语形式,允许您定义概念模型、其属性和关系,同时兼顾人类可读性和机器可读性。CE Store 包含了您开始使用受控英语环境所需的一切。我们是一个由 IBM 发起的开源组织,专注于为 ITA 受控英语提供实验性研究环境。

快速示例

CE 模型包含了关于加载到 CE Store 中的数据的所有信息。它由包含概念实例句子构建而成。

  • 一个句子总是以句号结尾。
  • 一个概念定义一个事物。
  • 一个实例是该概念/事物的一个单独出现。

下面是一个在 CE 中定义概念句子示例: conceptualise a ~ planet ~ P that has the value M as ~ mass ~ and has the value R as ~ radius ~. 然后我们可以使用另一个 CE 句子定义一个名为“Earth”的行星实例there is a planet named 'Earth' that has '5.972 × 10^24' as mass and has 6371 as radius.

更多详细示例,您可以访问维基教程部分 (https://github.com/ce-store/ce-store/wiki#tutorials) 或观看视频 (https://www.youtube.com/watch?v=bfTYYCUjo6M) 进行详细概述和示例(22分48秒)。

快速指南

  • 安装与设置 (https://github.com/ce-store/ce-store#installation-and-setup)
  • 使用方法 (https://github.com/ce-store/ce-store#usage)
  • 教程 (https://github.com/ce-store/ce-store/wiki#tutorials)
  • API (https://github.com/ce-store/ce-store/wiki#api)
  • 速查表 (https://github.com/ce-store/ce-store/wiki#cheatsheet)
  • 命令语法 (https://github.com/ce-store/ce-store/wiki#command-syntax)
  • Hudson (https://github.com/ce-store/ce-store/wiki#hudson)
  • 其他项目 (https://github.com/ce-store/ce-store/wiki#other-ce-projects)
  • 贡献指南 (https://github.com/ce-store/ce-store#contributing)
  • 许可证 (https://github.com/ce-store/ce-store#license)

安装与设置 - 在 IBM Cloud 中使用 CE

部署到 IBM Cloud (https://bluemix.net/deploy?repository=https://github.com/ce-store/ce-store) 开始使用受控英语的一种简便方式是通过 IBM Cloud。您可以免费注册 IBM Cloud (https://console.bluemix.net/),拥有账户后,点击上方按钮将自动为您部署一个云端托管的 CE Store 实例。 重要提示: 部署到 IBM Cloud 后,您会发现您的 ce-store 运行在 http://(您的 IBM Cloud URL)/ce-store/,而不是 IBM Cloud URL 的根目录下。因此,要通过工程面板访问 ce-store,您需要导航至 http://(您的 IBM Cloud URL)/ce-store/ui/

安装与设置 - 在您自己的机器上运行 CE

克隆代码

git clone https://github.com/ce-store/ce-store

使用 Apache Maven

使用 Apache Maven,运行以下命令通过内嵌的 Tomcat 服务器启动 CE Store 应用。

mvn install
mvn tomcat:run

CE Store 将在以下 URL 可用:http://localhost:8080/ce-store

使用 Docker

docker pull cestore/ce-store
docker run --rm -it -p 8080:8080 cestore/ce-store

使用 Docker 构建

使用 Apache Maven 为项目构建 WAR 文件,命令如下。

mvn package

此 WAR 文件可以通过以下命令构建为 Docker 镜像。

docker build -t ce-store .

然后从此镜像启动本地运行的容器。

docker run --rm -it -p 8080:8080 ce-store

CE Store 将在以下 URL 可用:http://localhost:8080/ce-store

使用 Vagrant

需要安装 Vagrant (https://www.vagrantup.com)。

vagrant up
vagrant ssh
cd /vagrant

然后按照“使用 Apache Maven”中的步骤操作。

使用方法

工程面板

工程面板提供了一个与 CE Store 交互的简单网页界面,使用户能够查看 CE Store 的内容、加载新的 CE 句子、对存储执行查询等。 要打开工程面板,请访问 /ce-store/ui。其界面应如下所示: 工程面板 工程面板有四个主要区域:

  • [左侧] 模型操作:可以加载和修改 CE 模型。
  • [右侧] 对象窗格:可以查看 CE store 的内容。
  • [底部] 消息:错误将在此处报告。
  • [中央] 工作区域:与模型的交互。

CE Store 附带了一组示例 CE 句子,用于构建一个关于医疗数据的模型。维基页面包含一个关于如何使用 Medicine 模型的教程 (https://github.com/ce-store/ce-store/wiki/Introducing-the-Medicine-Model)。

贡献指南

在此处阅读关于贡献的信息 (https://github.com/ce-store/ce-store/blob/master/CONTRIBUTE.md)。

许可证

根据 Apache License, Version 2.0 (https://github.com/ce-store/ce-store/blob/master/LICENSE.md) 授权。

相似文章

ISEE:数据库字段的交互式语义增强

arXiv cs.AI

本文介绍了ISEE,一个交互式系统,利用基于LLM的智能体来评估并协作增强数据库字段描述的语义质量,降低认知负荷,并提升实体链接等下游任务的表现。

Context Is Not Control:面向LLM的源边界评估

Reddit r/LocalLLaMA

一篇介绍《Context Is Not Control》的论文,该基准评估LLM在处理受控文本中介证据时的源边界失效问题。附带开放权重模型和前沿API模型的复现包。