MCPcopy
hub / github.com/fxsjy/jieba / cuttest

Function cuttest

test/test_tokenize.py:9–13  ·  view source on GitHub ↗
(test_sent)

Source from the content-addressed store, hash-verified

7g_mode="default"
8
9def cuttest(test_sent):
10 global g_mode
11 result = jieba.tokenize(test_sent,mode=g_mode)
12 for tk in result:
13 print("word %s\t\t start: %d \t\t end:%d" % (tk[0],tk[1],tk[2]))
14
15
16if __name__ == "__main__":

Callers 1

test_tokenize.pyFile · 0.70

Calls 1

tokenizeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…