dart_sentiment 0.0.9 copy "dart_sentiment: ^0.0.9" to clipboard
dart_sentiment: ^0.0.9 copied to clipboard

Dart Sentiment is a dart module that uses the AFINN-165 wordlist and Emoji Sentiment Ranking to perform sentiment analysis on arbitrary blocks of input text.

example/lib/main.dart

import 'package:dart_sentiment/dart_sentiment.dart';

void main() {
  final sentiment = Sentiment();

  print(sentiment.analysis("The cake she made was terrible 😐"));

  print(sentiment.analysis("The cake she made was terrible 😐", emoji: true));

  print(sentiment.analysis(
    "I love cats, but I am allergic to them.",
  ));

  print(sentiment.analysis("J'adore les chats, mais j'y suis allergique.",
      languageCode: LanguageCode.french));

  print(sentiment.analysis("Le gâteau qu'elle a fait était horrible 😐",
      emoji: true, languageCode: LanguageCode.french));
}
35
likes
150
points
128
downloads

Publisher

unverified uploader

Weekly Downloads

Dart Sentiment is a dart module that uses the AFINN-165 wordlist and Emoji Sentiment Ranking to perform sentiment analysis on arbitrary blocks of input text.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, remove_emoji

More

Packages that depend on dart_sentiment