Skip to content
A JavaScript Chinese word segmentation tool based on Python Jieba
Branch: master
Clone or download
Pull request Compare This branch is 104 commits ahead of hermanschaaf:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
codepen
html-lib
node.js
punctuations-userdict
scripts
weka
README.md
index.html
jquery.js
require-jieba-js.js
stop_words.txt
user_dict.txt
weka_arff_csv.html
weka_csv_arff.html
word_remap.txt

README.md

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

You can’t perform that action at this time.