ml_sentiment_simple 1.0.0 copy "ml_sentiment_simple: ^1.0.0" to clipboard
ml_sentiment_simple: ^1.0.0 copied to clipboard

A simple multilingual (Turkish + English) sentiment analyzer based on word scoring.

example/main.dart

import 'package:ml_sentiment_simple/ml_sentiment_simple.dart';

void main() {
  final analyzer = SentimentAnalyzer(
    lexicon: WordSentimentLexicon(
      language: LexiconLanguage.both,
      customPositiveWords: {'delightful'},
      customNegativeWords: {'horrendous'},
    ),
  );

  const text = "This product is absolutely amazing and delightful, but the delivery was horrendous.";
  final result = analyzer.analyze(text);

  print(result); // Output: Label: positive, Score: 0.33, ...
}
0
likes
160
points
6
downloads

Publisher

unverified uploader

Weekly Downloads

A simple multilingual (Turkish + English) sentiment analyzer based on word scoring.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

More

Packages that depend on ml_sentiment_simple