Blog Archives

Replacing abbreviations via Python and regular expressions

When gambling around with NLP and text corpora in Python, I frequently face simple abbreviations like “z.B.”, the german equivalent of “i.e.”, which I sometimes want to expand. This is a handy (german) utility-method expanding the defined abbrevations, via regular

Tagged with: , , ,
Posted in Development, Python

Virtual Environments, Python and Sublime 3

A simple Sublime 3-project file in order to run the currently opened script in a previously initialized virtual environment, in a linux environment: { "build_systems": [ { "name": "Run active script in Virtual Environment", "selector": "source.python", "shell_cmd": "source bin/activate &&

Tagged with: , , , ,
Posted in Development, Python