superchen17 / aho-corasick Goto Github PK
View Code? Open in Web Editor NEWPython implementation of Aho-Corasick algorithm for string searching
Python implementation of Aho-Corasick algorithm for string searching
@Superchen17
This isn't really a bug, but rather a request for information.
I am curious why you did not use the pip
-installable 'pyahocorasick` rather than writing your own. Please don't take this to be a criticism - sometimes there are particular reasons to work with a fresh implementation, e.g., other implementations may not be designed to be used in the way that you have in mind, etc.. Furthermore, I see the benefit in doing an implementation to understand the algorithm better. I also have tried to do implementations 'purely' in one language rather than relying upon libraries written in another language. And, indeed, I post to public GitHub repos things that I am coding for whatever reason without worrying whether it might somehow be useful to anyone else.
So, if you care to share what your motivation is, I'd like to know. What might be particularly informative is the execution speed of your implementation compared to pyahocorasick
.
Thank you in advance for taking this inquiry in the spirit intended, and happy coding!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.