sentiment_dart 0.0.3 copy "sentiment_dart: ^0.0.3" to clipboard
sentiment_dart: ^0.0.3 copied to clipboard

outdated

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

example/sentiment_dart_example.dart

import 'package:sentiment_dart/sentiment_dart.dart';

void main() {
  final sentiment = Sentiment();
  var customLang = {'i': 1, 'love': 1, 'dart': 5,'car':2};
  print(sentiment.analysis('i love dart',customLang: customLang));
  
  print(sentiment.analysis('i hate you piece of shit 💩'));

  print(sentiment.analysis('i hate you piece of shit 💩',emoji: true));

  print(sentiment.analysis('ti odio un pezzo di merda 💩',languageCode: 'it'));

  print(sentiment.analysis('ti odio un pezzo di merda 💩',emoji: true,languageCode: 'it'));

  print(sentiment.analysis('je te déteste merde 💩',languageCode: 'fr'));

  print(sentiment.analysis('je te déteste merde 💩',emoji: true,languageCode: 'fr'));
}
18
likes
0
pub points
73%
popularity

Publisher

verified publisherworldtrollfootball.wtf

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

remove_emoji

More

Packages that depend on sentiment_dart