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')[source]

Bases: object

__call__(sentence: AnyStr, cut_all: bool = False, HMM: bool = True) List[source]

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[source]
cut(sentence: AnyStr, cut_all: bool = False, HMM: bool = True) List[source]

Generator is not supported now, cut behaves the same as lcut.

Generator is not supported now, cut_for_search behaves the same as lcut_for_search.

lcut(sentence: AnyStr, cut_all: bool = False, HMM: bool = True) List[source]
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')[source]

Bases: object

__call__(sentence: AnyStr, cut_all: bool = False, HMM: bool = True) List[source]

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[source]
cut(sentence: AnyStr, cut_all: bool = False, HMM: bool = True) List[source]

Generator is not supported now, cut behaves the same as lcut.

Generator is not supported now, cut_for_search behaves the same as lcut_for_search.

lcut(sentence: AnyStr, cut_all: bool = False, HMM: bool = True) List[source]