removed unnecessary strip

Former-commit-id: 002351bace
This commit is contained in:
Joshua Chin 2015-07-17 15:11:28 -04:00
parent 919f2f5912
commit bb706b65f4

View File

@ -18,7 +18,7 @@ def count_tokens(filename):
counts = defaultdict(int)
with open(filename, encoding='utf-8', errors='replace') as infile:
for line in infile:
for token in simple_tokenize(line.strip()):
for token in simple_tokenize(line):
counts[token] += 1
return counts