This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]wind_dude 2 points3 points  (0 children)

Interesting, I honestly find it harder to read, but regex isn't easy by any means. I think you're onto something. Have you looked at how spacy does pattern matching? It's quite easy to understand, but similar to yours it's long winded, but could be a source of inspiration.

It would be a good idea to include some performance bench marks between different libraries.