WojciechMula / pyahocorasick

Python module (C extension and plain python) implementing Aho-Corasick algorithm
BSD 3-Clause "New" or "Revised" License
927 stars 122 forks source link

What is meant by "approximate" ... search in readme? #92

Closed kootenpv closed 5 years ago

kootenpv commented 5 years ago

... library for exact or approximate multi-pattern string search ...

I'm curious what is meant in the first line of the readme with "approximate"? I cannot find any functions...

WojciechMula commented 5 years ago

@kootenpv It means one can use wildcard during search in dictionary. So you may lookup for "?at" and get "cat", "rat", "bat", etc.

kootenpv commented 5 years ago

@WojciechMula Oh cool, I couldn't find anything about it. Has there been anything written on it? And does it mean that ??at also works?

Is there a way to escape ??

WojciechMula commented 5 years ago

@kootenpv It is described in the documentation :) https://github.com/WojciechMula/pyahocorasick#automaton-dictionary-like-methods

WojciechMula commented 5 years ago

@kootenpv feel free to ask further question. Please reopen this issue or create new one, if required.

kootenpv commented 5 years ago

Thanks, it is very clear!