Skip to content

Instantly share code, notes, and snippets.

@amundo
Created October 21, 2011 23:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amundo/1305262 to your computer and use it in GitHub Desktop.
Save amundo/1305262 to your computer and use it in GitHub Desktop.
from collections import Counter
text = open('Texts.txt').read().decode('utf-8')
lines = text.splitlines()
besemah = []
for line in lines:
if line.startswith('\\tx') and line.strip() != '\\tx':
besemah.append(line)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment