适度的自然语言处理
(原始内容存档于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"be" 的过去分词变为"was"而不是"been"
已从原始字符串中替换的字符
Compromise-dates 插件: 添加包含持续时间范围的选项
混乱的连字词处理
包支持 Node >= 12,但 CI 仅测试 Node 20 和 26
请求: 为上下文感知模式匹配添加 #AbstractNoun 标签
对于常见句子的奇异动词检测
Compromise-Payloads 插件: 如果 Payload 出现在已删除的视图之后,则将其删除
缺少将形容词转换为原始形式
类型 'Verbs' 中不存在属性 'toPastParticiple'。