1. Felix_Remmel
  2. corenlp-python

Commits

Jan-Wijbrand Kolman  committed 6cd385c

move the server starting code to a separate function to be able
to use at as a poor man's entry point.

  • Participants
  • Parent commits cf33141
  • Branches master

Comments (0)

Files changed (1)

File corenlp/corenlp.py

View file
     return parse_xml_output(input_folder, corenlp_path, memory, raw_output=raw_output)
 
 
-if __name__ == '__main__':
+def server():
     """
     The code below starts an JSONRPC server
     """
     except KeyboardInterrupt:
         print >>sys.stderr, "Bye."
         exit()
+
+if __name__ == '__main__':
+    server()