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

outdated

Sentiment Dart 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
0
points
93
downloads

Publisher

unverified uploader

Weekly Downloads

Sentiment Dart 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

License

unknown (license)

Dependencies

flutter, remove_emoji

More

Packages that depend on dart_sentiment