Skip to content

Commit 5f22d13

Browse files
committed
Update README.md
1 parent 0081efe commit 5f22d13

File tree

1 file changed

+2
-83
lines changed

1 file changed

+2
-83
lines changed

README.md

Lines changed: 2 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -26,95 +26,14 @@ api = API("[your_api-key]")
2626
params = DocumentParameters()
2727

2828
# 5. Set parameters.
29-
params["content"] = u""The quick brown fox jumped over the lazy dog. Yes he did.""
29+
params["content"] = "The quick brown fox jumped over the lazy dog. Yes he did."
3030

3131
# 6. Make a call.
3232
result = api.morphology(params)
3333

3434
# result is a Python dictionary that contains
3535

36-
{
37-
"tokens": [
38-
"The",
39-
"quick",
40-
"brown",
41-
"fox",
42-
"jumped",
43-
"over",
44-
"the",
45-
"lazy",
46-
"dog",
47-
".",
48-
"Yes",
49-
"he",
50-
"did",
51-
"."
52-
],
53-
"posTags": [
54-
"DET",
55-
"ADJ",
56-
"ADJ",
57-
"NOUN",
58-
"VERB",
59-
"ADP",
60-
"DET",
61-
"ADJ",
62-
"NOUN",
63-
"PUNCT",
64-
"VERB",
65-
"PRON",
66-
"VERB",
67-
"PUNCT"
68-
],
69-
"lemmas": [
70-
"the",
71-
"quick",
72-
"brown",
73-
"fox",
74-
"jump",
75-
"over",
76-
"the",
77-
"lazy",
78-
"dog",
79-
".",
80-
"yes",
81-
"he",
82-
"do",
83-
"."
84-
],
85-
"compoundComponents": [
86-
null,
87-
null,
88-
null,
89-
null,
90-
null,
91-
null,
92-
null,
93-
null,
94-
null,
95-
null,
96-
null,
97-
null,
98-
null,
99-
null
100-
],
101-
"hanReadings": [
102-
null,
103-
null,
104-
null,
105-
null,
106-
null,
107-
null,
108-
null,
109-
null,
110-
null,
111-
null,
112-
null,
113-
null,
114-
null,
115-
null
116-
]
117-
}
36+
{u'tokens': [u'The', u'quick', u'brown', u'fox', u'jumped', u'over', u'the', u'lazy', u'dog', u'.', u'Yes', u'he', u'did', u'.'], u'posTags': [u'DET', u'ADJ', u'ADJ', u'NOUN', u'VERB', u'ADP', u'DET', u'ADJ', u'NOUN', u'PUNCT', u'VERB', u'PRON', u'VERB', u'PUNCT'], u'compoundComponents': [None, None, None, None, None, None, None, None, None, None, None, None, None, None], u'lemmas': [u'the', u'quick', u'brown', u'fox', u'jump', u'over', u'the', u'lazy', u'dog', u'.', u'yes', u'he', u'do', u'.'], u'hanReadings': [None, None, None, None, None, None, None, None, None, None, None, None, None, None]}
11837
```
11938

12039
The samples use the following procedure:

0 commit comments

Comments
 (0)