Commits

Hiroyoshi Komatsu committed f33916c

Add force to close option

Comments (0)

Files changed (1)

corenlp/corenlp.py

         self.corenlp.expect("Entering interactive shell.")
         if VERBOSE: pbar.finish()
 
-    def close(self):
-        self.corenlp.terminate()
-        self.corenlp.close()
+    def close(self, force=True):
+        self.corenlp.close(force=force)
 
     def _parse(self, text):
         """