matx.text.jieba module¶
supported global functions in jieba(py)
[ ] get_FREQ = lambda k, d=None: dt.FREQ.get(k, d) [ ] add_word = dt.add_word [ ] calc = dt.calc [*] cut = dt.cut [*] lcut = dt.lcut [*] cut_for_search = dt.cut_for_search [*] lcut_for_search = dt.lcut_for_search [ ] del_word = dt.del_word [ ] get_DAG = dt.get_DAG [ ] get_dict_file = dt.get_dict_file [ ] initialize = dt.initialize [ ] load_userdict = dt.load_userdict [ ] set_dictionary = dt.set_dictionary [ ] suggest_freq = dt.suggest_freq [ ] tokenize = dt.tokenize [ ] user_word_tag_tab = dt.user_word_tag_tab
- class matx.text.jieba.Jieba(dict_path: AnyStr = '/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/matx/text/jieba_dict/jieba.dict.utf8', model_path: AnyStr = '/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/matx/text/jieba_dict/hmm_model.utf8', user_dict_path: AnyStr = '/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/matx/text/jieba_dict/user.dict.utf8', idfPath: AnyStr = '/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/matx/text/jieba_dict/idf.utf8', stopWordPath: AnyStr = '/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/matx/text/jieba_dict/stop_words.utf8')[源代码]¶
基类:
object
- __call__(sentence: AnyStr, cut_all: bool = False, HMM: bool = True) List [源代码]¶
Call self as a function.
- __init__(dict_path: AnyStr = '/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/matx/text/jieba_dict/jieba.dict.utf8', model_path: AnyStr = '/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/matx/text/jieba_dict/hmm_model.utf8', user_dict_path: AnyStr = '/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/matx/text/jieba_dict/user.dict.utf8', idfPath: AnyStr = '/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/matx/text/jieba_dict/idf.utf8', stopWordPath: AnyStr = '/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/matx/text/jieba_dict/stop_words.utf8') None [源代码]¶
- cut(sentence: AnyStr, cut_all: bool = False, HMM: bool = True) List [源代码]¶
Generator is not supported now, cut behaves the same as lcut.
- class matx.text.jieba.JiebaImpl(dict_path: AnyStr = '/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/matx/text/jieba_dict/jieba.dict.utf8', model_path: AnyStr = '/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/matx/text/jieba_dict/hmm_model.utf8', user_dict_path: AnyStr = '/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/matx/text/jieba_dict/user.dict.utf8', idfPath: AnyStr = '/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/matx/text/jieba_dict/idf.utf8', stopWordPath: AnyStr = '/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/matx/text/jieba_dict/stop_words.utf8')[源代码]¶
基类:
object
- __call__(sentence: AnyStr, cut_all: bool = False, HMM: bool = True) List [源代码]¶
Call self as a function.
- __init__(dict_path: AnyStr = '/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/matx/text/jieba_dict/jieba.dict.utf8', model_path: AnyStr = '/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/matx/text/jieba_dict/hmm_model.utf8', user_dict_path: AnyStr = '/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/matx/text/jieba_dict/user.dict.utf8', idfPath: AnyStr = '/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/matx/text/jieba_dict/idf.utf8', stopWordPath: AnyStr = '/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/matx/text/jieba_dict/stop_words.utf8') None [源代码]¶
- cut(sentence: AnyStr, cut_all: bool = False, HMM: bool = True) List [源代码]¶
Generator is not supported now, cut behaves the same as lcut.