8000 Fixed errors causing masks to fail. · evanma92/stanford-corenlp-python@754c062 · GitHub
[go: up one dir, main page]

Skip to content

Commit 754c062

Browse files
committed
Fixed errors causing masks to fail.
1 parent 847367f commit 754c062

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

corenlp/corenlp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def init_corenlp_command(corenlp_path, memory, properties):
100100
"""
101101

102102
# TODO: Can edit jar constants
103-
jar_mask = ["*.jar"]
104-
jars = glob.glob(os.path.join(corenlp_path, jar))
103+
jar_mask = "*.jar"
104+
jars = glob.glob(os.path.join(corenlp_path, jar_mask))
105105

106106
java_path = "java"
107107
classname = "edu.stanford.nlp.pipeline.StanfordCoreNLP"
@@ -354,7 +354,7 @@ def close(self, force=True):
354354
self.corenlp.terminate()
355355
else:
356356
self.corenlp.terminate(force)
357-
357+
358358

359359
def isalive(self):
360360
return self.corenlp.isalive()

0 commit comments

Comments
 (0)
0