Upload jieba3k/JIEBA3K_USER_GUIDE.txt with huggingface_hub
Browse files
jieba3k/JIEBA3K_USER_GUIDE.txt
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
================================================================================
|
| 2 |
+
JIEBA3K - USER GUIDE (Android Python STB) - Generated by RIMI
|
| 3 |
+
================================================================================
|
| 4 |
+
|
| 5 |
+
VERSION: 0.35.1
|
| 6 |
+
TYPE: Pure Python (py3-none-any)
|
| 7 |
+
DEPENDENCIES: none
|
| 8 |
+
|
| 9 |
+
WHAT IS JIEBA3K?
|
| 10 |
+
jieba3k is the Python-3 port of the jieba Chinese text segmentation library.
|
| 11 |
+
It splits Chinese text into words using a prefix dictionary and a hidden
|
| 12 |
+
Markov model, and also handles mixed English/Chinese input.
|
| 13 |
+
|
| 14 |
+
INSTALL:
|
| 15 |
+
pip install --extra-index-url https://pythonstb.s.gy/wheels312/ --extra-index-url https://pypi.org/simple/ --extra-index-url https://chaquo.com/pypi-13.1/simple/ --find-links https://pythonstb.s.gy/wheels312/jieba3k/ jieba3k
|
| 16 |
+
|
| 17 |
+
QUICK START:
|
| 18 |
+
import jieba
|
| 19 |
+
jieba.setLogLevel(60) # silence the logging on import
|
| 20 |
+
|
| 21 |
+
list(jieba.cut("我来到北京清华大学")) # default mode
|
| 22 |
+
list(jieba.cut("小明硕士毕业于中国科学院计算所", cut_all=True)) # full mode
|
| 23 |
+
list(jieba.cut_for_search("小明硕士毕业于中国科学院计算所")) # search mode
|
| 24 |
+
list(jieba.cut("hello world python programming")) # English works too
|
| 25 |
+
|
| 26 |
+
FEATURES:
|
| 27 |
+
- cut() default / cut_all (full) modes
|
| 28 |
+
- cut_for_search() search-engine mode
|
| 29 |
+
- add_word(), load_userdict() custom dictionary
|
| 30 |
+
- initialize(), setLogLevel()
|
| 31 |
+
- Engines for other languages with HMM support
|
| 32 |
+
|
| 33 |
+
ANDROID NOTES:
|
| 34 |
+
- Pure Python, no native code required
|
| 35 |
+
- First jieba.initialize() builds the prefix dictionary (may take a moment)
|
| 36 |
+
- Install the single wheel via PipManager, or unzip to site-packages
|
| 37 |
+
|
| 38 |
+
TESTED FEATURES:
|
| 39 |
+
- import + API (cut, cut_for_search, add_word, load_userdict, setLogLevel, initialize)
|
| 40 |
+
- cut() default mode
|
| 41 |
+
- cut_all=True full mode
|
| 42 |
+
- cut() English
|
| 43 |
+
- cut_for_search
|
| 44 |
+
|
| 45 |
+
================================================================================
|
| 46 |
+
Generated by RIMI
|
| 47 |
+
================================================================================
|