[Tutor] Segmenting bash help docs
Mats Wichmann
mats at wichmann.us
Sun Dec 26 10:50:32 EST 2021
On 12/25/21 13:46, Julius Hamilton wrote:
> Not sure if anybody has any opinions on this, or ways they’d improve it.
> It’d be cool to find a single simple, elegant way to clean, strip and
> conjoin the sentences/lines in one line of code, and also not to use the
> “re” module if not necessary.
This is the kind of problem regular expressions were invented for, so
don't be shy about using them...
If you want to get really carried away, consider the natural language
toolkit (nltk): https://www.nltk.org/
More information about the Tutor
mailing list