File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1+ # coding=utf-8
12import json
23from jsonrpc import ServerProxy , JsonRpc20 , TransportTcpIp
34from pprint import pprint
Original file line number Diff line number Diff line change 1- #!/usr/bin/env python
1+ # coding=utf-8
22#
33# corenlp - Python interface to Stanford Core NLP tools
44# Copyright (c) 2014 Dustin Smith
@@ -72,7 +72,7 @@ def parse_parser_results(text):
7272 """
7373 results = {"sentences" : []}
7474 state = STATE_START
75- for line in text .encode ( 'utf-8' ). split ("\n " ):
75+ for line in text .split ("\n " ):
7676 line = line .strip ()
7777
7878 if line .startswith ("Sentence #" ):
Original file line number Diff line number Diff line change 1- #!/usr/bin/env python
2- # -*- coding: ascii -*-
1+ # coding=utf-8
32"""
43JSON-RPC (remote procedure call).
54
You can’t perform that action at this time.
0 commit comments