MCPcopy Index your code

hub / github.com/WojciechMula/pyahocorasick / functions

Functions469 in github.com/WojciechMula/pyahocorasick

↓ 158 callersMethodadd_word
Adds word and associated value. If word already exists, its value is replaced.
etc/py/pyahocorasick.py:146
↓ 45 callersMethodmake_automaton
Converts trie to Aho-Corasick automaton.
etc/py/pyahocorasick.py:191
↓ 42 callersMethoditer
Generator performs Aho-Corasick search string algorithm, yielding tuples containing two values: - position in string
etc/py/pyahocorasick.py:219
↓ 33 callersMethodcreate_raw_node
(self, eow, children)
tests/test_unpickle.py:124
↓ 33 callersMethoditems
Generator returning all keys and values stored in a trie.
etc/py/pyahocorasick.py:109
↓ 28 callersMethodadd_words_and_make_automaton
(self)
tests/test_unit.py:553
↓ 28 callersMethodget
Retrieves output value associated with word. If there is no word returns default value, and if default is not given rises Ke
etc/py/pyahocorasick.py:72
↓ 23 callersMethodkeys
Generator returning all keys (i.e. word) stored in trie
etc/py/pyahocorasick.py:93
↓ 21 callersFunctionmemory_free
src/utils.c:112
↓ 18 callersMethodcreate_automaton
(self, use_exact_raw=False)
tests/test_unpickle.py:101
↓ 17 callersFunctiondestroy_input
src/utils.c:398
↓ 17 callersMethodfind_all
Wrapper on iter method, callback gets an iterator result
etc/py/pyahocorasick.py:284
↓ 17 callersFunctionmemory_alloc
src/utils.c:63
↓ 14 callersMethodload
(self)
tests/pickle_stresstest.py:173
↓ 14 callersMethodmatch
Checks if word is a prefix of any existing word in the trie.
etc/py/pyahocorasick.py:184
↓ 14 callersMethodsave
(self)
tests/pickle_stresstest.py:163
↓ 14 callersMethodvalues
Generator returning all values associated with words stored in a trie.
etc/py/pyahocorasick.py:101
↓ 13 callersFunctiontrienode_get_next
src/trienode.c:42
↓ 9 callersMethodexists
Checks if whole word is present in the trie.
etc/py/pyahocorasick.py:173
↓ 9 callersMethoditer_long
Generator performs a modified Aho-Corasick search string algorithm, which maches only the longest word.
etc/py/pyahocorasick.py:244
↓ 8 callersMethodcompare_automatons
(self, A, B)
tests/test_unit.py:1474
↓ 8 callersMethoddump
(self)
tests/test_unpickle.py:27
↓ 8 callersFunctiontrienode_get_ith_unsafe
src/trienode.c:108
↓ 7 callersMethodcreate_raw_count
(self, n)
tests/test_unpickle.py:121
↓ 7 callersFunctiontrie_traverse
src/trie.c:216
↓ 6 callersMethodclear
Clears trie.
etc/py/pyahocorasick.py:166
↓ 6 callersFunctionprepare_input
src/utils.c:368
↓ 6 callersFunctionprepare_input_from_tuple
src/utils.c:387
↓ 6 callersMethodread
(self)
tests/pickle_stresstest.py:140
↓ 6 callersFunctionwriteln
(text="")
etc/dump2dot.py:17
↓ 6 callersFunctionwriteln
(text="")
etc/py/exportdot.py:14
↓ 5 callersMethodadd_words
(self)
tests/test_unit.py:547
↓ 5 callersMethodassertNotEmpty
(self, collection)
tests/test_unit.py:31
↓ 5 callersFunctionlist_item_new
src/slist.c:18
↓ 5 callersFunctionmemory_safefree
src/utils.c:121
↓ 5 callersFunctionnodename
(nodeid)
etc/dump2dot.py:20
↓ 5 callersFunctiontrienode_free
src/trienode.c:29
↓ 4 callersFunctionautomaton_items_create
src/Automaton.c:721
↓ 4 callersFunctioncheck_store
src/Automaton.c:20
↓ 4 callersFunctioninit_input
src/utils.c:362
↓ 4 callersFunctionsavebuffer_flush
src/custompickle/save/savebuffer.c:43
↓ 4 callersFunctionsavebuffer_store
src/custompickle/save/savebuffer.c:73
↓ 4 callersFunctiontrieletter_get_ith_unsafe
src/trienode.c:116
↓ 3 callersMethod__get_node
Private function retrieving a final node of trie for given word Returns node or None, if the trie doesn't contain the word.
etc/py/pyahocorasick.py:55
↓ 3 callersFunctioncheck_key_type
src/Automaton.c:56
↓ 3 callersMethodcompare_automatons
(self, A, B)
tests/test_unit.py:938
↓ 3 callersFunctiondump2dot
(automaton, file)
etc/dump2dot.py:15
↓ 3 callersFunctionenv_exists
src/utils.c:36
↓ 3 callersMethodhelper
(self, method)
tests/test_unit.py:503
↓ 3 callersFunctionlist_delete
src/slist.c:44
↓ 3 callersFunctionlist_push_front
src/slist.c:81
↓ 3 callersFunctionloadbuffer_load
src/custompickle/load/loadbuffer.c:25
↓ 3 callersFunctionpymod_get_string
returns bytes or unicode internal buffer */
src/utils.c:145
↓ 3 callersFunctiontrie_find
src/trie.c:139
↓ 2 callersFunctionahocorasick_next
src/trie.c:177
↓ 2 callersFunctionassign_input
src/utils.c:404
↓ 2 callersFunctionautomaton_create
src/Automaton.c:72
↓ 2 callersFunctionautomaton_remove_word_aux
src/Automaton.c:302
↓ 2 callersFunctionautomaton_save_load_parse_args
src/custompickle/pyhelpers.c:3
↓ 2 callersFunctionautomaton_search_iter_advance_index
src/AutomatonSearchIter.c:202
↓ 2 callersFunctionautomaton_search_iter_substring_index
src/AutomatonSearchIter.c:18
↓ 2 callersFunctioncallback
(index, item)
tests/test_basic.py:36
↓ 2 callersFunctioncheck_kind
src/Automaton.c:38
↓ 2 callersMethodcreate_node_builder
(self, eow, children)
tests/test_unpickle.py:113
↓ 2 callersFunctionenv_getint
src/utils.c:27
↓ 2 callersFunctionexportdot
(trie, file)
etc/py/exportdot.py:12
↓ 2 callersFunctionformat_size
(size)
tests/pickle_stresstest.py:198
↓ 2 callersMethodgenerate_random_word
(self)
tests/removeword_stresstest.py:121
↓ 2 callersMethodgenerate_random_word
(self)
tests/pickle_stresstest.py:189
↓ 2 callersFunctionget_memory_usage
()
tests/test_issue_9.py:27
↓ 2 callersFunctionget_memory_usage
()
tests/unresolved_bugs/test_bug_81.py:21
↓ 2 callersFunctionget_pickled_size
src/Automaton_pickle.c:64
↓ 2 callersFunctionget_stats
src/Automaton.c:1061
↓ 2 callersFunctionlist_append
src/slist.c:64
↓ 2 callersFunctionlist_init
src/slist.c:35
↓ 2 callersFunctionlist_pop_first
src/slist.c:96
↓ 2 callersFunctionloadbuffer_close
src/custompickle/load/loadbuffer.c:116
↓ 2 callersFunctionlookup_address
src/custompickle/load/module_automaton_load.c:209
↓ 2 callersMethodnormalize
(self, node)
etc/update_inlinedoc.py:111
↓ 2 callersFunctionpickle_data__add_next_buffer
src/pickle/pickle_data.c:29
↓ 2 callersFunctionpymod_parse_start_end
parse optional indexes used in few functions [start, [end]] */
src/utils.c:293
↓ 2 callersMethodread
(self)
tests/removeword_stresstest.py:116
↓ 2 callersMethodremove
(self)
tests/removeword_stresstest.py:57
↓ 2 callersFunctionsavebuffer_acquire
src/custompickle/save/savebuffer.c:53
↓ 2 callersFunctionsavebuffer_finalize
src/custompickle/save/savebuffer.c:102
↓ 2 callersFunctiontrienode_new
src/trienode.c:13
↓ 1 callersMethod__add_from_file
(self)
tests/removeword_stresstest.py:82
↓ 1 callersMethod__add_from_file
(self)
tests/pickle_stresstest.py:104
↓ 1 callersMethod__add_random_words
(self)
tests/removeword_stresstest.py:72
↓ 1 callersMethod__add_random_words
(self)
tests/pickle_stresstest.py:92
↓ 1 callersMethod__format_file
(self, path, name)
etc/update_inlinedoc.py:44
↓ 1 callersMethod__generate_random_words
(self)
tests/removeword_stresstest.py:99
↓ 1 callersMethod__generate_random_words
(self)
tests/pickle_stresstest.py:123
↓ 1 callersMethod__get_files
(self)
etc/update_inlinedoc.py:52
↓ 1 callersMethod__load_words
(self)
tests/removeword_stresstest.py:107
↓ 1 callersMethod__load_words
(self)
tests/pickle_stresstest.py:131
↓ 1 callersFunction__read_sequence__from_tuple
src/utils.c:238
↓ 1 callersMethodadd_words
(self)
etc/benchmarks/benchmark.py:68
↓ 1 callersMethodadd_words
(self)
tests/removeword_stresstest.py:42
↓ 1 callersMethodadd_words
(self)
tests/pickle_stresstest.py:77
next →1–100 of 469, ranked by callers