Analyze plain text sentiment

Version: 1.0.1
language/analyze-plain-text-sentiment
superface

Analyzes the prevailing emotional opinion of given text.

Analyze plain text sentiment

Determines writer's attitude in the text as positive, negative, or neutral.

Text
Language code
Sentiment
Score

1. Install

npx @superfaceai/cli install language/analyze-plain-text-sentiment

2. Use in your code

const { SuperfaceClient } = require('@superfaceai/one-sdk');

const sdk = new SuperfaceClient();

async function run() {
  // Load the installed profile
  const profile = await sdk.getProfile('language/analyze-plain-text-sentiment');

  // Use the profile
  const result = await profile
    .getUseCase('AnalyzePlainTextSentiment')
    .perform({
      text: 'Enjoy your stay.',
      languageCode: 'en'
    });

  return result.unwrap();
}

run();

3. Add providers