cyac icon indicating copy to clipboard operation
cyac copied to clipboard

High performance Trie and Ahocorasick automata (AC automata) Keyword Match & Replace Tool for python. Correct case insensitive implementation!

Results cyac issues
Sort by recently updated
recently updated
newest added

``` building 'cyac.xstring' extension clang++ -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -Ilib/cyac -I/Users/marat/workspace/publishing/.venv/include -I/Users/marat/.pyenv/versions/3.13.0/include/python3.13 -c lib/cyac/xstring.cpp -o build/temp.macosx-15.0-arm64-cpython-313/lib/cyac/xstring.o lib/cyac/xstring.cpp:5097:17: error: use of undeclared identifier '_PyUnicode_ToLowerFull' 5097 | __pyx_v_n =...

I'm getting the following error when trying to install cyac % pip --version pip 23.2.1 from /usr/local/lib/python3.9/site-packages/pip (python 3.9) Don't even know if it's cyacs fault, but maybe you can...

[marisa-trie](https://github.com/pytries/marisa-trie) [datrie](https://github.com/pytries/datrie) The above two projects are currently excellent projects. Can people who have used them help evaluate their direct differences?

I got an error while doing "pip install cyac": building 'cyac.xstring' extension x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC...

There is error during build of the latest 1.8 version when package downloaded from PyPI: ``` lib/cyac/xstring.cpp:1113:10: fatal error: 'unicode_portability.c' file not found #include "unicode_portability.c" ^~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. error:...

At https://github.com/nppoly/cyac/blob/master/lib/cyac/ac.pyx#L261, The description is "return_all: by default, only return the longest. ..." But when I run following code, I cannot understand the output. ``` ac = cyac.AC.build([u"py", u"python"]) text...

## Issue When iterating over an AC trie, a segmentation fault occurs. For example: ``` import cyac trie = cyac.AC.build(['hello', 'world']) for w in trie: print(w) ``` Output: ``` hello...

```pwsh pip install cyac Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting cyac Downloading https://pypi.tuna.tsinghua.edu.cn/packages/db/2e/4a4916514b64694dd478ab085f01fb4ca599e3127c05704f98f3067e8fc7/cyac-1.3.tar.gz (38 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │...

Summary: Previously saved case sensitive data loads without error into trie. However trie.get(val) fails get item, even though iterating through trie.items() show correct item. Env: Archlinux using python 3.9, Ubuntu...

bug