Created
November 4, 2019 19:10
-
-
Save MagicSword/c28ab2cf8000f7274b6b79a589cf27dd to your computer and use it in GitHub Desktop.
Revisions
-
MagicSword created this gist
Nov 4, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ #encoding=utf-8 import jieba sentence = "鼓,可以傳遞訊息、也是一種節奏樂器,在台灣無論是神將團、八家將、官將首、布袋戲這些傳統藝陣技藝項目,還是紅白喜事民俗活動,鼓聲都是不可或缺的重要元素,今天咱們要 跟著祖傳三代的製鼓世家來「講鼓」,講「鼓」早的故事、製鼓的辛苦,聽鼓聲傳千里,振作精神勇往直前!" print("Input:", sentence) words = jieba.cut(sentence, cut_all=False) print("Output 精確模式 Full Mode:") for word in words: print(word) sentence = "独立音乐需要大家一起来推广,欢迎加入我们的行列!" print("Input:", sentence) words = jieba.cut(sentence, cut_all=False) print("Output 精確模式 Full Mode:") for word in words: print(word)