Skip to content

Instantly share code, notes, and snippets.

@kylebgorman
Created July 10, 2019 12:15
Show Gist options
  • Save kylebgorman/6737cbffa9246afa1ee28fc33903b846 to your computer and use it in GitHub Desktop.
Save kylebgorman/6737cbffa9246afa1ee28fc33903b846 to your computer and use it in GitHub Desktop.
Applies Unicode case folding to input data
#!/usr/bin/env python
import fileinput
import nltk
if __name__ == "__main__":
for line in fileinput.input():
print(line.rstrip().casefold())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment