MCPcopy Create free account

hub / github.com/CasterWx/python-girlfriend-mood / functions

Functions94 in github.com/CasterWx/python-girlfriend-mood

↓ 9 callersMethodcut
The main function that segments an entire sentence that contains Chinese characters into separated words. Parameter:
jieba/__init__.py:275
↓ 7 callersFunctionstrdecode
(sentence)
jieba/_compat.py:34
↓ 5 callersMethodcheck_initialized
(self)
jieba/__init__.py:169
↓ 5 callersMethodcut
(self, sentence, HMM=True)
jieba/posseg/__init__.py:248
↓ 5 callersMethodget_DAG
(self, sentence)
jieba/__init__.py:181
↓ 4 callersMethodcalc
(self, sentence, DAG, route)
jieba/__init__.py:173
↓ 3 callersMethod__cut_internal
(self, sentence, HMM=True)
jieba/posseg/__init__.py:215
↓ 3 callersMethod__unicode__
(self)
jieba/posseg/__init__.py:50
↓ 3 callersMethodencode
(self, arg)
jieba/posseg/__init__.py:74
↓ 3 callersMethodget_dict_file
(self)
jieba/__init__.py:353
↓ 3 callersMethodinitialize
(self, dictionary=None)
jieba/__init__.py:94
↓ 3 callersFunctionresolve_filename
(f)
jieba/_compat.py:42
↓ 2 callersMethod__cut_detail
(self, sentence)
jieba/posseg/__init__.py:135
↓ 2 callersMethod_lcut_all
(self, sentence)
jieba/__init__.py:347
↓ 2 callersMethodadd_word
Add a word to dictionary. freq and tag can be omitted, freq defaults to be a calculated value that ensures the word can be c
jieba/__init__.py:397
↓ 2 callersMethodget_idf
(self)
jieba/analyse/tfidf.py:55
↓ 2 callersMethodlcut
(self, *args, **kwargs)
jieba/__init__.py:335
↓ 2 callersMethodload_word_tag
(self, f)
jieba/posseg/__init__.py:97
↓ 2 callersMethodpairfilter
(self, wp)
jieba/analyse/textrank.py:65
↓ 2 callersMethodset_new_path
(self, new_idf_path)
jieba/analyse/tfidf.py:44
↓ 2 callersMethodset_stop_words
(self, stop_words_path)
jieba/analyse/tfidf.py:23
↓ 1 callersFunction__cut
(sentence)
jieba/finalseg/__init__.py:59
↓ 1 callersMethod__cut
(self, sentence)
jieba/posseg/__init__.py:117
↓ 1 callersMethod_lcut_for_search_no_hmm
(self, sentence)
jieba/__init__.py:350
↓ 1 callersMethod_lcut_internal
(self, sentence)
jieba/posseg/__init__.py:242
↓ 1 callersMethod_lcut_internal_no_hmm
(self, sentence)
jieba/posseg/__init__.py:245
↓ 1 callersMethod_lcut_no_hmm
(self, sentence)
jieba/__init__.py:344
↓ 1 callersMethodaddEdge
(self, start, end, weight)
jieba/analyse/textrank.py:19
↓ 1 callersFunctioncut
Global `cut` function that supports parallel processing. Note that this only works using dt, custom POSTokenizer instances are not suppo
jieba/posseg/__init__.py:272
↓ 1 callersMethodcut_for_search
Finer segmentation for search engines.
jieba/__init__.py:317
↓ 1 callersFunctioncutfunc
(sentence, _, HMM=True)
jieba/__main__.py:34
↓ 1 callersMethodgen_pfdict
(self, f)
jieba/__init__.py:73
↓ 1 callersFunctioninitMoonBad
()
run.py:34
↓ 1 callersFunctioninitMoonNice
()
run.py:24
↓ 1 callersFunctioninitMoonValue
()
run.py:13
↓ 1 callersMethodlcut_for_search
(self, *args, **kwargs)
jieba/__init__.py:338
↓ 1 callersFunctionload_model
()
jieba/finalseg/__init__.py:23
↓ 1 callersFunctionload_model
()
jieba/posseg/__init__.py:26
↓ 1 callersMethodload_userdict
Load personalized dict to improve detect rate. Parameter: - f : A plain text file contains words and their ocurrences.
jieba/__init__.py:359
↓ 1 callersMethodmakesure_userdict_loaded
(self)
jieba/posseg/__init__.py:112
↓ 1 callersMethodrank
(self)
jieba/analyse/textrank.py:24
↓ 1 callersMethodsuggest_freq
Suggest word frequency to force the characters in a word to be joined or splitted. Parameter: - segment : The se
jieba/__init__.py:424
↓ 1 callersMethodtokenize
Tokenize a sentence and yields tuples of (word, start, end) Parameter: - sentence: the str(unicode) to be segmented.
jieba/__init__.py:455
↓ 1 callersFunctionviterbi
(obs, states, start_p, trans_p, emit_p)
jieba/finalseg/__init__.py:37
↓ 1 callersFunctionviterbi
(obs, states, start_p, trans_p, emit_p)
jieba/posseg/viterbi.py:14
FunctionChineseAnalyzer
(stoplist=STOP_WORDS, minsize=1, stemfn=stem, cachesize=50000)
jieba/analyse/analyzer.py:34
Method__call__
(self, text, **kargs)
jieba/analyse/analyzer.py:21
Method__cut_DAG
(self, sentence)
jieba/__init__.py:235
Method__cut_DAG
(self, sentence)
jieba/posseg/__init__.py:175
Method__cut_DAG_NO_HMM
(self, sentence)
jieba/__init__.py:212
Method__cut_DAG_NO_HMM
(self, sentence)
jieba/posseg/__init__.py:152
Method__cut_all
(self, sentence)
jieba/__init__.py:199
Method__eq__
(self, other)
jieba/posseg/__init__.py:68
Method__getattr__
(self, name)
jieba/posseg/__init__.py:87
Method__hash__
(self)
jieba/posseg/__init__.py:71
Method__init__
(self, dictionary=DEFAULT_DICT)
jieba/__init__.py:57
Method__init__
(self, idf_path=None)
jieba/analyse/tfidf.py:37
Method__init__
(self, idf_path=None)
jieba/analyse/tfidf.py:61
Method__init__
(self)
jieba/analyse/textrank.py:16
Method__init__
(self)
jieba/analyse/textrank.py:59
Method__init__
(self, word, flag)
jieba/posseg/__init__.py:46
Method__init__
(self, tokenizer=None)
jieba/posseg/__init__.py:80
Method__iter__
(self)
jieba/posseg/__init__.py:62
Method__lt__
(self, other)
jieba/posseg/__init__.py:65
Method__repr__
(self)
jieba/__init__.py:70
Method__repr__
(self)
jieba/posseg/__init__.py:53
Method__repr__
(self)
jieba/posseg/__init__.py:84
Method__str__
(self)
jieba/posseg/__init__.py:56
Function_lcut
(s)
jieba/__init__.py:525
Function_lcut_all
(s)
jieba/__init__.py:521
Function_lcut_for_search
(s)
jieba/__init__.py:537
Function_lcut_for_search_no_hmm
(s)
jieba/__init__.py:541
Function_lcut_internal
(s)
jieba/posseg/__init__.py:264
Function_lcut_internal_no_hmm
(s)
jieba/posseg/__init__.py:268
Function_lcut_no_hmm
(s)
jieba/__init__.py:529
Function_pcut
(sentence, cut_all=False, HMM=True)
jieba/__init__.py:545
Function_pcut_for_search
(sentence, HMM=True)
jieba/__init__.py:558
Functionadd_force_split
(word)
jieba/finalseg/__init__.py:81
Functioncut
(sentence)
jieba/finalseg/__init__.py:85
Methoddel_word
Convenient function for deleting a word.
jieba/__init__.py:418
Functiondisable_parallel
()
jieba/__init__.py:592
Functionenable_parallel
Change the module's `cut` and `cut_for_search` functions to the parallel version. Note that this only works using dt, custom Tokenizer
jieba/__init__.py:569
Methodextract_tags
(self, *args, **kwargs)
jieba/analyse/tfidf.py:31
Methodextract_tags
Extract keywords from sentence using TF-IDF algorithm. Parameter: - topK: return how many top keywords. `None` for all po
jieba/analyse/tfidf.py:75
Functionget_top_states
(t_state_v, K=4)
jieba/posseg/viterbi.py:10
Methodinitialize
(self, dictionary=None)
jieba/posseg/__init__.py:93
Functionlcut
(sentence, HMM=True)
jieba/posseg/__init__.py:294
Methodlcut
(self, *args, **kwargs)
jieba/posseg/__init__.py:252
FunctionloadOld
()
run.py:47
FunctionsetLogLevel
(log_level)
jieba/__init__.py:51
Methodset_dictionary
(self, dictionary_path)
jieba/__init__.py:488
Methodset_idf_path
(self, idf_path)
jieba/analyse/tfidf.py:68
Functionset_stop_words
(stop_words_path)
jieba/analyse/__init__.py:16
Methodtextrank
Extract keywords from sentence using TextRank algorithm. Parameter: - topK: return how many top keywords. `None` for all
jieba/analyse/textrank.py:69