We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f93f021 commit 3d62d7eCopy full SHA for 3d62d7e
client.py
@@ -1,3 +1,4 @@
1
+# coding=utf-8
2
import json
3
from jsonrpc import ServerProxy, JsonRpc20, TransportTcpIp
4
from pprint import pprint
corenlp.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
#
# corenlp - Python interface to Stanford Core NLP tools
# Copyright (c) 2014 Dustin Smith
@@ -72,7 +72,7 @@ def parse_parser_results(text):
72
"""
73
results = {"sentences": []}
74
state = STATE_START
75
- for line in text.encode('utf-8').split("\n"):
+ for line in text.split("\n"):
76
line = line.strip()
77
78
if line.startswith("Sentence #"):
jsonrpc.py
@@ -1,5 +1,4 @@
-# -*- coding: ascii -*-
JSON-RPC (remote procedure call).
5
0 commit comments