Fix some indent.
This commit is contained in:
parent
23f4e3a045
commit
dd1ca71957
1 changed files with 43 additions and 47 deletions
|
@ -20,9 +20,7 @@ def auth(client_id, client_secret):
|
|||
"clientSecret": client_secret
|
||||
}
|
||||
|
||||
r = requests.post(token_url,
|
||||
headers=headers,
|
||||
data=json.dumps(data))
|
||||
r = requests.post(token_url,headers=headers,data=json.dumps(data))
|
||||
|
||||
return r.json()["access_token"]
|
||||
|
||||
|
@ -43,9 +41,7 @@ def parse(sentence, access_token):
|
|||
"type": "default"
|
||||
}
|
||||
|
||||
r = requests.post(base_url + "v1/parse",
|
||||
headers=headers,
|
||||
data=json.dumps(data))
|
||||
r = requests.post(base_url + "v1/parse",headers=headers,data=json.dumps(data))
|
||||
return r.json()
|
||||
|
||||
# ひらがなを削除する関数
|
||||
|
|
Loading…
Reference in a new issue