Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/WojciechMula/pyahocorasick
/ functions
Functions
469 in github.com/WojciechMula/pyahocorasick
⨍
Functions
469
◇
Types & classes
79
↓ 158 callers
Method
add_word
Adds word and associated value. If word already exists, its value is replaced.
etc/py/pyahocorasick.py:146
↓ 45 callers
Method
make_automaton
Converts trie to Aho-Corasick automaton.
etc/py/pyahocorasick.py:191
↓ 42 callers
Method
iter
Generator performs Aho-Corasick search string algorithm, yielding tuples containing two values: - position in string
etc/py/pyahocorasick.py:219
↓ 33 callers
Method
create_raw_node
(self, eow, children)
tests/test_unpickle.py:124
↓ 33 callers
Method
items
Generator returning all keys and values stored in a trie.
etc/py/pyahocorasick.py:109
↓ 28 callers
Method
add_words_and_make_automaton
(self)
tests/test_unit.py:553
↓ 28 callers
Method
get
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 callers
Method
keys
Generator returning all keys (i.e. word) stored in trie
etc/py/pyahocorasick.py:93
↓ 21 callers
Function
memory_free
src/utils.c:112
↓ 18 callers
Method
create_automaton
(self, use_exact_raw=False)
tests/test_unpickle.py:101
↓ 17 callers
Function
destroy_input
src/utils.c:398
↓ 17 callers
Method
find_all
Wrapper on iter method, callback gets an iterator result
etc/py/pyahocorasick.py:284
↓ 17 callers
Function
memory_alloc
src/utils.c:63
↓ 14 callers
Method
load
(self)
tests/pickle_stresstest.py:173
↓ 14 callers
Method
match
Checks if word is a prefix of any existing word in the trie.
etc/py/pyahocorasick.py:184
↓ 14 callers
Method
save
(self)
tests/pickle_stresstest.py:163
↓ 14 callers
Method
values
Generator returning all values associated with words stored in a trie.
etc/py/pyahocorasick.py:101
↓ 13 callers
Function
trienode_get_next
src/trienode.c:42
↓ 9 callers
Method
exists
Checks if whole word is present in the trie.
etc/py/pyahocorasick.py:173
↓ 9 callers
Method
iter_long
Generator performs a modified Aho-Corasick search string algorithm, which maches only the longest word.
etc/py/pyahocorasick.py:244
↓ 8 callers
Method
compare_automatons
(self, A, B)
tests/test_unit.py:1474
↓ 8 callers
Method
dump
(self)
tests/test_unpickle.py:27
↓ 8 callers
Function
trienode_get_ith_unsafe
src/trienode.c:108
↓ 7 callers
Method
create_raw_count
(self, n)
tests/test_unpickle.py:121
↓ 7 callers
Function
trie_traverse
src/trie.c:216
↓ 6 callers
Method
clear
Clears trie.
etc/py/pyahocorasick.py:166
↓ 6 callers
Function
prepare_input
src/utils.c:368
↓ 6 callers
Function
prepare_input_from_tuple
src/utils.c:387
↓ 6 callers
Method
read
(self)
tests/pickle_stresstest.py:140
↓ 6 callers
Function
writeln
(text="")
etc/dump2dot.py:17
↓ 6 callers
Function
writeln
(text="")
etc/py/exportdot.py:14
↓ 5 callers
Method
add_words
(self)
tests/test_unit.py:547
↓ 5 callers
Method
assertNotEmpty
(self, collection)
tests/test_unit.py:31
↓ 5 callers
Function
list_item_new
src/slist.c:18
↓ 5 callers
Function
memory_safefree
src/utils.c:121
↓ 5 callers
Function
nodename
(nodeid)
etc/dump2dot.py:20
↓ 5 callers
Function
trienode_free
src/trienode.c:29
↓ 4 callers
Function
automaton_items_create
src/Automaton.c:721
↓ 4 callers
Function
check_store
src/Automaton.c:20
↓ 4 callers
Function
init_input
src/utils.c:362
↓ 4 callers
Function
savebuffer_flush
src/custompickle/save/savebuffer.c:43
↓ 4 callers
Function
savebuffer_store
src/custompickle/save/savebuffer.c:73
↓ 4 callers
Function
trieletter_get_ith_unsafe
src/trienode.c:116
↓ 3 callers
Method
__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 callers
Function
check_key_type
src/Automaton.c:56
↓ 3 callers
Method
compare_automatons
(self, A, B)
tests/test_unit.py:938
↓ 3 callers
Function
dump2dot
(automaton, file)
etc/dump2dot.py:15
↓ 3 callers
Function
env_exists
src/utils.c:36
↓ 3 callers
Method
helper
(self, method)
tests/test_unit.py:503
↓ 3 callers
Function
list_delete
src/slist.c:44
↓ 3 callers
Function
list_push_front
src/slist.c:81
↓ 3 callers
Function
loadbuffer_load
src/custompickle/load/loadbuffer.c:25
↓ 3 callers
Function
pymod_get_string
returns bytes or unicode internal buffer */
src/utils.c:145
↓ 3 callers
Function
trie_find
src/trie.c:139
↓ 2 callers
Function
ahocorasick_next
src/trie.c:177
↓ 2 callers
Function
assign_input
src/utils.c:404
↓ 2 callers
Function
automaton_create
src/Automaton.c:72
↓ 2 callers
Function
automaton_remove_word_aux
src/Automaton.c:302
↓ 2 callers
Function
automaton_save_load_parse_args
src/custompickle/pyhelpers.c:3
↓ 2 callers
Function
automaton_search_iter_advance_index
src/AutomatonSearchIter.c:202
↓ 2 callers
Function
automaton_search_iter_substring_index
src/AutomatonSearchIter.c:18
↓ 2 callers
Function
callback
(index, item)
tests/test_basic.py:36
↓ 2 callers
Function
check_kind
src/Automaton.c:38
↓ 2 callers
Method
create_node_builder
(self, eow, children)
tests/test_unpickle.py:113
↓ 2 callers
Function
env_getint
src/utils.c:27
↓ 2 callers
Function
exportdot
(trie, file)
etc/py/exportdot.py:12
↓ 2 callers
Function
format_size
(size)
tests/pickle_stresstest.py:198
↓ 2 callers
Method
generate_random_word
(self)
tests/removeword_stresstest.py:121
↓ 2 callers
Method
generate_random_word
(self)
tests/pickle_stresstest.py:189
↓ 2 callers
Function
get_memory_usage
()
tests/test_issue_9.py:27
↓ 2 callers
Function
get_memory_usage
()
tests/unresolved_bugs/test_bug_81.py:21
↓ 2 callers
Function
get_pickled_size
src/Automaton_pickle.c:64
↓ 2 callers
Function
get_stats
src/Automaton.c:1061
↓ 2 callers
Function
list_append
src/slist.c:64
↓ 2 callers
Function
list_init
src/slist.c:35
↓ 2 callers
Function
list_pop_first
src/slist.c:96
↓ 2 callers
Function
loadbuffer_close
src/custompickle/load/loadbuffer.c:116
↓ 2 callers
Function
lookup_address
src/custompickle/load/module_automaton_load.c:209
↓ 2 callers
Method
normalize
(self, node)
etc/update_inlinedoc.py:111
↓ 2 callers
Function
pickle_data__add_next_buffer
src/pickle/pickle_data.c:29
↓ 2 callers
Function
pymod_parse_start_end
parse optional indexes used in few functions [start, [end]] */
src/utils.c:293
↓ 2 callers
Method
read
(self)
tests/removeword_stresstest.py:116
↓ 2 callers
Method
remove
(self)
tests/removeword_stresstest.py:57
↓ 2 callers
Function
savebuffer_acquire
src/custompickle/save/savebuffer.c:53
↓ 2 callers
Function
savebuffer_finalize
src/custompickle/save/savebuffer.c:102
↓ 2 callers
Function
trienode_new
src/trienode.c:13
↓ 1 callers
Method
__add_from_file
(self)
tests/removeword_stresstest.py:82
↓ 1 callers
Method
__add_from_file
(self)
tests/pickle_stresstest.py:104
↓ 1 callers
Method
__add_random_words
(self)
tests/removeword_stresstest.py:72
↓ 1 callers
Method
__add_random_words
(self)
tests/pickle_stresstest.py:92
↓ 1 callers
Method
__format_file
(self, path, name)
etc/update_inlinedoc.py:44
↓ 1 callers
Method
__generate_random_words
(self)
tests/removeword_stresstest.py:99
↓ 1 callers
Method
__generate_random_words
(self)
tests/pickle_stresstest.py:123
↓ 1 callers
Method
__get_files
(self)
etc/update_inlinedoc.py:52
↓ 1 callers
Method
__load_words
(self)
tests/removeword_stresstest.py:107
↓ 1 callers
Method
__load_words
(self)
tests/pickle_stresstest.py:131
↓ 1 callers
Function
__read_sequence__from_tuple
src/utils.c:238
↓ 1 callers
Method
add_words
(self)
etc/benchmarks/benchmark.py:68
↓ 1 callers
Method
add_words
(self)
tests/removeword_stresstest.py:42
↓ 1 callers
Method
add_words
(self)
tests/pickle_stresstest.py:77
next →
1–100 of 469, ranked by callers