Text Sentiment Analysis Method

부분 유료
분류별 fyhao | 업데이트됨 לפני 16 ימים | Tools
인기

9.1 / 10

지연 시간

524ms

서비스 수준

100%

Health Check

N/A

모든 토론으로 돌아가기

Request sent is right but text is not accepted

Rapid account: Ranggaperwiratama
ranggaperwiratama
לפני 5 שנים

Function
$response = Unirest\Request::post(“https://text-sentiment.p.mashape.com/analyze”,
array(
“X-Mashape-Key” => “GBJcc8W9nEmshsm38YliVbyEq2b4p193MybjsnzRreJ2XV9R7I”,
“Content-Type” => “application/x-www-form-urlencoded”,
“Accept” => “application/json”
),
json_encode(array(
“text” => “I am not really happy”
))
);

Response
{“code”:200,“raw_body”:"{“text”:"",“totalLines”:1,“pos”:0,“neg”:0,“mid”:1,“pos_percent”:“0%”,“neg_percent”:“0%”,“mid_percent”:“100%”}",“body”:{“text”:"",“totalLines”:1,“pos”:0,“neg”:0,“mid”:1,“pos_percent”:“0%”,“neg_percent”:“0%”,“mid_percent”:“100%”},“headers”:{“0”:“HTTP/1.1 200 OK”,“Content-Type”:“text/plain”,“Date”:“Fri, 16 Nov 2018 17:02:43 GMT”,“Server”:“Mashape/5.0.6”,“X-Powered-By”:“Express”,“Content-Length”:“109”,“Connection”:“keep-alive”}}

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입