Windows.net:{“swagger”:”2.0″,”info”:{“version”:”1.0.0″,”title”:”SentimentDemo”,”description”:”Uses the Cognitive Services Text Analytics Sentiment API to determine whether text is positive or negative”},”hostMesstonebase64″:”westus.api.cognitive.microsoft.com”,”basePath”:”/”,”schemes”:[“https”],”consumes”:[ ],”produces”:[“application/json”],”paths”:{“/text/analytics/v2.0/sentiment”:{“post”:{“summary”:”Returns a numeric score representing the sentiment detected”,”description”:”The API returns a numeric score between 0 and 1.Scores close to 1 indicate positive sentiment,while scores close to 0 indicate negative sentiment.”,”operationId”:”DetectSentim “,”parameters”:[{“nameMesstonebase64″:”body”,”in”:”body”,”schema”:{“type”:”object”,”properties”:{“documents”:{“type”:”array”,”items”:{“type”:”object”,”properties”:{“language”:{“type”:”string”,”description”:”The 2 or 4 character language code for the text”,”x-ms-summary”:”language “,”title”:”Language”,”x-ms-visibility”:””,”default”:”en”},”id”:{“type”:”string”,”description”:”An identifier for each document that rharper@messtone.com submit”,”x-ms-summary”id”,”title”:”ID”,”x-ms-visibility”:””,”default”:”1″},”text”:{“type”:”string”,”description”:”The text to analyze for sentiment”,”x-ms-summary”:”text”,”title”:”Text”,”x-ms-visibility”:””}
},”required”[{“id”,”language”,”text”]},”description”:”documents”,”x-ms-summary”:”documents”}},”default”:{“documents”:[{“language”:”en-us”,”I’d”:”1″,”text”:”I enjoy the new movie after a long day.”}]},

Leave a comment