Commits

Anonymous committed 6026558

updated README

  • Participants
  • Parent commits 0f51765

Comments (0)

Files changed (1)

 
 Assuming you are running on port 8080, the code in `client.py` shows an example parse: 
 
-    port jsonrpc
+    import jsonrpc
     server = jsonrpc.ServerProxy(jsonrpc.JsonRpc20(),
             jsonrpc.TransportTcpIp(addr=("127.0.0.1", 8080)))
 
     print "Result", result
 
 
-Produces:
-
-    Result [{"text": "hello world", "tuples": [["amod", "world", "hello"]], "words": {"world": {"NamedEntityTag": "O", "CharacterOffsetEnd": "11", "Lemma": "world", "PartOfSpeech": "NN", "CharacterOffsetBegin": "6"}, "hello": {"NamedEntityTag": "O", "CharacterOffsetEnd": "5", "Lemma": "hello", "PartOfSpeech": "JJ", "CharacterOffsetBegin": "0"}}}]
+Produces a list with a parsed dictionary for each sentence:
+
+    Result [{"text": "hello world", 
+            "tuples": [["amod", "world", "hello"]], 
+            "words": {"world": {"NamedEntityTag": "O", 
+                                "CharacterOffsetEnd": "11", 
+                                "Lemma": "world", 
+                                "PartOfSpeech": "NN", 
+                                "CharacterOffsetBegin": "6"}, 
+                      "hello": {"NamedEntityTag": "O", 
+                                "CharacterOffsetEnd": "5", 
+                                "Lemma": "hello", 
+                                "PartOfSpeech": "JJ", 
+                                "CharacterOffsetBegin": "0"}}}]
 
 
 <!--