Skip to content

Commit

Permalink
make check_code unicode-compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
defseg committed Aug 20, 2017
1 parent 70a8ee1 commit 6c995a0
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 6c995a0

Please sign in to comment.