百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

compromise

> 编程语言
开源

适度的自然语言处理

12.2K stars0 点赞2 次浏览
访问官网GitHub

工具介绍

适度的自然语言处理

(中文(简体) ). (中文(简体) ).

(原始内容存档于2019-09-29) (英语). ```js import nlp from 'compromise'

let doc = nlp('she sells seashells by the seashore.') doc.verbs().toPastTense() doc.text() // 'she sold seashells by the seashore.'


ZZ1ZZ

(原始内容存档于2019-09-29). ```js
let doc = nlp(entireNovel)
doc.match('the #Adjective of times').text()
// "the blurst of times?"

并获得数据:

ZZCODE3 乐团

避免难解的问题:

(原始内容存档于2019-09-26). ```js let doc = nlp("we're not gonna take it..")

doc.has('gonna') // true doc.has('going to') // true (implicit)

// transform doc.contractions().expand() doc.text() // 'we are not going to take it..'


就像数据一样

ZZCODE5 乐团

<sub>-因为它实际上是- </sub>

ZZCODE6 乐团

在客户端使用 :

ZZ7ZZ

或同样:

```typescript
import nlp from 'compromise'

var doc = nlp('London is calling')
doc.verbs().toNegative()
// 'London is not calling'
``` (美国英语).

折中值为 \\ 250kb**(减去):

它的相当快。 它可以运行在密钥压上 :

它主要通过基本单词列表的<a href='https://observablehq.com/@spencermountain/verbs">conjugating所有形式</a>来工作.

最后的词典为<a href='https://observablehq.com/@spencermountain/compromise-lexicon">~14,000词</a>:

你可以读到更多如何工作, [这里] (https://observablehq.com/@spencermountain/compromise-internals). 这很奇怪。

<p对齐="左"]
< sub> 好 - </ sub>
<h1> (韩语)
<code>妥协/ 1 </code>
</h1> (韩语)
<p对齐="中心" > a <code> to

Issues· 123 开放

查看全部 Issues在 GitHub 打开
  • #1226

    "be" 的过去分词变为"was"而不是"been"

    bugnext-releasefixed-on-dev更新于 2026年9月26日
  • #1142

    已从原始字符串中替换的字符

    bugfixed-on-dev更新于 2026年9月9日
  • #1215

    Compromise-dates 插件: 添加包含持续时间范围的选项

    更新于 2026年8月27日
  • #1214

    混乱的连字词处理

    yesss更新于 2026年8月17日
  • #1207

    包支持 Node >= 12,但 CI 仅测试 Node 20 和 26

    更新于 2026年6月9日
  • #1200

    请求: 为上下文感知模式匹配添加 #AbstractNoun 标签

    更新于 2026年3月19日
  • #1190

    对于常见句子的奇异动词检测

    tagger更新于 2025年10月15日
  • #1188

    Compromise-Payloads 插件: 如果 Payload 出现在已删除的视图之后,则将其删除

    bughelp-wanted更新于 2025年8月5日
  • #1186

    缺少将形容词转换为原始形式

    yesssfeature-request更新于 2025年6月26日
  • #1181

    类型 'Verbs' 中不存在属性 'toPastParticiple'。

    更新于 2025年4月26日

> 标签

JavaScriptnamed-entity-recognitionnlppart-of-speech

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月28日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言