regroup
regroup copied to clipboard
Generate a regular expression that describes a set of strings.
_init_py
Hello! I am trying to run an example in Mac Terminal. I've got the following error message: $ echo -e 'Mississippi\nMissouri' | python regroup.py Traceback (most recent call last): File...
collapse shared suffixes and substrings e.g. ``` input: [bat, brat, cat] now: (br?at|cat) dawg: (br?|c)at ``` ref: https://github.com/rflynn/regroup/blob/master/tests/test_init.py#L41
once features and bugs have settled, consider a more performant implementation in C. try leveraging existing C/C++ DAWG implementations.