Skip to content

Commit

Permalink
Merge pull request #1 from pwry/master
Browse files Browse the repository at this point in the history
make check_code unicode-compatible
  • Loading branch information
teuben authored Aug 29, 2017
2 parents 70a8ee1 + 6c995a0 commit 182ec2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions check_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#from __future__ import division # Python 2 users only
#from __future__ import print_function
import sys, os

import codecs
import nltk, re, pprint

#from nltk import word_tokenize
Expand All @@ -21,7 +21,7 @@

def try1(txtfile):
#f = open('1408.6846v1.txt')
f = open(txtfile)
f = codecs.open(txtfile, encoding='utf-8')
raw = f.read()
#
tokens = nltk.word_tokenize(raw)
Expand Down

0 comments on commit 182ec2f

Please sign in to comment.