Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.26 KB

README.md

File metadata and controls

35 lines (25 loc) · 1.26 KB

jieba-js

A JavaScript Chinese word segmentation tool based on Python Jieba

Online demo: https://pulipulichen.github.io/jieba-js/

使用方法

<script src="https://pulipulichen.github.io/jieba-js/jquery.js"></script>
<script src="https://pulipulichen.github.io/jieba-js/require-jieba-js.js"></script>

<script>
_text = "這個布丁是在無聊的世界中找尋樂趣的一種不能吃的食物,喜愛動漫畫、遊戲、程式,以及跟世間脫節的生活步調。";
call_jieba_cut(_text, function (_result) {
	console.log(_result);
});
</script>

其他檔案

Reference