8000 Fix typo including pull request #2 · kowey/stanford-corenlp-python@4732083 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4732083

Browse files
committed
Fix typo including pull request dasmith#2
1 parent 1ab6edc commit 4732083

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

corenlp/corenlp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def init_corenlp_command(corenlp_path, memory, properties):
9999
elif os.path.exists(current_dir_pr):
100100
props = "-props %s" % (current_dir_pr)
101101
else:
102-
raise Exception("Error! Cannot locate: " % properties)
102+
raise Exception("Error! Cannot locate: %s" % properties)
103103

104104
# add and check classpaths
105105
jars = [corenlp_path + "/" + jar for jar in jars]
@@ -469,7 +469,7 @@ def batch_parse(input_folder, corenlp_path=DIRECTORY, memory="3g", raw_output=Fa
469469
and doesn't need init 'StanfordCoreNLP' class. )
470470
"""
471471
if not os.path.exists(input_folder):
472-
raise Exception("Not exist input_folder")
472+
raise Exception("input_folder does not exist")
473473

474474
return parse_xml_output(input_folder, corenlp_path, memory, raw_output=raw_output)
475475

0 commit comments

Comments
 (0)
0