Skip to content

Commit

Permalink
Made the script Python3 compatible.
Browse files Browse the repository at this point in the history
  • Loading branch information
sadeepj committed Jul 14, 2017
1 parent d726258 commit 5688c8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python-scripts/crfasrnn_demo.py
Expand Up @@ -178,12 +178,12 @@ def main(argv):
try:
opts, args = getopt.getopt(argv, 'hi:o:g:', ["ifile=", "ofile=", "gpu="])
except getopt.GetoptError:
print 'crfasrnn_demo.py -i <input_file> -o <output_file> -g <gpu_device>'
print("crfasrnn_demo.py -i <input_file> -o <output_file> -g <gpu_device>")
sys.exit(2)

for opt, arg in opts:
if opt == '-h':
print 'crfasrnn_demo.py -i <inputfile> -o <outputfile> -g <gpu_device>'
print("crfasrnn_demo.py -i <inputfile> -o <outputfile> -g <gpu_device>")
sys.exit()
elif opt in ("-i", "ifile"):
input_file = arg
Expand Down

0 comments on commit 5688c8d

Please sign in to comment.