我想在jquery中將段落分解成句子。 可以說我有一個段落如何在jQuery中將段落分解成句子
This is a wordpress plugin. its older version was 2.3.4 and new version is 2.4. But the version 2.4 had a lot of bungs. Can we solve it?
我想將它打入
This is a wordpress plugin.
its older version was 2.3.4 and new version is 2.4.
But the version 2.4 had a lot of bungs.
Can we solve it?
是有任何解決方案。 我試圖使用這個功能,但它也單獨的句子,當一個數字來了。
var result = str.match(/[^\.!\?]+[\.!\?]+/g);
感謝
這不是simple.you可以使用庫 –
[nlp_compromise](https://github.com/nlp-compromise/nlp_compromise)([示例](https://github.com/nlp-compromise/ nlp_compromise/wiki /句子解析)) – gcampbell
NLP是一個很大的任務,所以它是一個大型圖書館。 – gcampbell