Skip to content

Commit a262f81

Browse files
nouizGrégoire
authored andcommitted
small fix
1 parent c992713 commit a262f81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

code/rnnslu.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import os
66
import urllib
77
import random
8+
import stat
89
import subprocess
910
import sys
1011
import time
@@ -102,7 +103,7 @@ def get_perf(filename):
102103
if not os.path.isfile(_conlleval):
103104
url = 'http://www-etud.iro.umontreal.ca/~mesnilgr/atis/conlleval.pl'
104105
download(url)
105-
chmod('conlleval.pl', stat.S_IRWXU) # give the execute permissions
106+
os.chmod('conlleval.pl', stat.S_IRWXU) # give the execute permissions
106107

107108
proc = subprocess.Popen(["perl",
108109
_conlleval],

0 commit comments

Comments
 (0)