1. Hiroyoshi Komatsu
  2. corenlp-python

Commits

dustin smith  committed 29e0c0d

removed tilde

  • Participants
  • Parent commits c7d3d53
  • Branches master

Comments (0)

Files changed (2)

File client.py

View file
  • Ignore whitespace
 # call a remote-procedure 
 result = loads(server.parse("hello world"))
 print "Result", result
-~                         
 
 

File corenlp.py

View file
  • Ignore whitespace
         results = parse_parser_results(incoming)
         return results
 
+    def _debug_parse(self, text, verbose=True):
+        print "DEBUG PARSE -- "
+        rf = open("test.out", 'r')
+        results = rf.readlines()
+        rf.close()
+        return results
+
     def parse(self, text, verbose=True):
         """ 
         This function takes a text string, sends it to the Stanford parser,