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
1
2
import json
2
3
from jsonrpc import ServerProxy , JsonRpc20 , TransportTcpIp
3
4
from pprint import pprint
Original file line number Diff line number Diff line change 1
- #!/usr/bin/env python
1
+ # coding=utf-8
2
2
#
3
3
# corenlp - Python interface to Stanford Core NLP tools
4
4
# Copyright (c) 2014 Dustin Smith
@@ -72,7 +72,7 @@ def parse_parser_results(text):
72
72
"""
73
73
results = {"sentences" : []}
74
74
state = STATE_START
75
- for line in text .encode ( 'utf-8' ). split ("\n " ):
75
+ for line in text .split ("\n " ):
76
76
line = line .strip ()
77
77
78
78
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
3
2
"""
4
3
JSON-RPC (remote procedure call).
5
4
You can’t perform that action at this time.
0 commit comments