Regex was taking 5 days to run. So I built a tool that did it in 15 minutes.
Regex is quite slow when number of terms to find/replace is in thousands.
Tags: opensource, python, nlp, informationretrieval