Skip to content

Latest commit

 

History

History
132 lines (98 loc) · 3.7 KB

File metadata and controls

132 lines (98 loc) · 3.7 KB

IO.Swagger.Api.SentimentAnalysisApi

All URIs are relative to https://brainrexapi.appspot.com:5000/api

Method HTTP request Description
SentimentGetPriceSentiment POST /get_buy_sentiment Sentiment analysis score using a model trained for buy signals.
SentimentGetSentiment POST /get_sentiment Sentiment analysis for any given blob of text

SentimentGetPriceSentiment

string SentimentGetPriceSentiment (Text1 text)

Sentiment analysis score using a model trained for buy signals.

Gives a 0 to 1 score, depending on buy/sell sentiment

Example

using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class SentimentGetPriceSentimentExample
    {
        public void main()
        {
            var apiInstance = new SentimentAnalysisApi();
            var text = new Text1(); // Text1 | String of text to be analyzed. I can be in any language.

            try
            {
                // Sentiment analysis score using a model trained for buy signals.
                string result = apiInstance.SentimentGetPriceSentiment(text);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SentimentAnalysisApi.SentimentGetPriceSentiment: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
text Text1 String of text to be analyzed. I can be in any language.

Return type

string

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

SentimentGetSentiment

string SentimentGetSentiment (Text text)

Sentiment analysis for any given blob of text

Gives a -1 to 1 score, depending on bearish/bullish sentiment

Example

using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class SentimentGetSentimentExample
    {
        public void main()
        {
            var apiInstance = new SentimentAnalysisApi();
            var text = new Text(); // Text | String of text to be analyzed. I can be in any language.

            try
            {
                // Sentiment analysis for any given blob of text
                string result = apiInstance.SentimentGetSentiment(text);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SentimentAnalysisApi.SentimentGetSentiment: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
text Text String of text to be analyzed. I can be in any language.

Return type

string

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]