パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.0.5

sentiment_dart

Sentiment Dart は、AFINN-165語彙リストを使用して任意のテキストブロックに対して感情分析を実行するためのDartモジュールです。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
1540
いいね数
19
Pub ポイント
150

パッケージをインストール

flutter pub add sentiment_dart

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Sentiment Dart は、AFINN-165 の単語リストを使用してテキストの感情分析を実行する軽量な Dart パッケージです。感情の極性に基づいて単語に数値スコアを割り当てます。開発者は、Flutter アプリケーションで複数のプラットフォーム上でユーザー入力、レビュー、ソーシャルメディアコンテンツの感情を迅速に評価できます。このパッケージは簡単に統合でき、外部APIなしで基本的な感情検出が可能です。Android、iOS、Web、macOS、Windows、Linux をサポートしており、クロスプラットフォームでの利用に適しています。

用途

  • ユーザーのレビューを分析する
  • ソーシャルメディアの感情をモニタリングする
  • カスタマーフィードバックの評価
  • チャットメッセージ内の感情を検出する
  • コンテンツモデレーション

主な機能

  • AFINN-165語彙リストを使用
  • 軽量で高速
  • クロスプラットフォーム対応
  • シンプルなAPI統合
  • 外部の依存関係なし

適している対象

  • 基本的なセンチメント分析
  • テキスト入力付きのFlutterアプリ
  • リアルタイムフィードバックシステム
  • 教育プロジェクト
  • 低遅延センチメントチェック

注意事項

  • 事前に定義された単語スコアに制限される
  • 深層学習やコンテキスト認識なし
  • 皮肉や複雑な言語のニュアンスを処理できない可能性があります
  • 高精度のエンタープライズ用途には適していません

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Sentiment Dart

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. Sentiment Dart heavily inspired by the Javascript package sentiment

Usage

import 'package:sentiment_dart/sentiment_dart.dart';

main() {
  void main() {

  print(Sentiment.analysis('i hate you piece of shit 💩'));

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

output

{score: -7, comparative: -1.1666666666666667, words: [i, hate, you, piece, of, shit], good words: [], badword: [[hate, -3], [shit, -4]]}

{score: -8, comparative: -1.1428571428571428, words: [i, hate, you, piece, of, shit, 💩], good words: [], badword: [[hate, -3], [shit, -4], [💩, -1]]}
Other language

example

import 'package:sentiment_dart/sentiment_dart.dart';

main() {
  void main() {


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

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

}
}

output

{score: -7, comparative: -1.1666666666666667, words: [ti, odio, un, pezzo, di, merda], good words: [], badword: [[odio, -3], [merda, -4]]}

{score: -8, comparative: -1.1428571428571428, words: [ti, odio, un, pezzo, di, merda, 💩], good words: [], badword: [[odio, -3], [merda, -4], [💩, -1]]}
Custom language

example

import 'package:sentiment_dart/sentiment_dart.dart';

main() {
  void main() {


  var customLang = {'i': 1, 'love': 1, 'dart': 5,'car':2};
  print(Sentiment.analysis('i love dart',customLang: customLang));
}
}

output

{score: 7, comparative: 2.3333333333333335, words: [i, love, dart], good words: [[i, 1], [love, 1], [dart, 5]], badword: []}

How it works ?

AFINN is a list of words rated for valence with an integer between minus five (negative) and plus five (positive). Sentiment analysis is performed by cross-checking the string tokens (words, emojis) with the AFINN list and getting their respective scores.

source

Languages and code

language code
English en
Italian it
french fr
german de

Contribution 🤓

Happy 😍 to recieve or provide contributions related to this package.

Features and bugs 🐛

Please file feature requests and bugs at the issue tracker.

Contact 📧

if you have any questions , feel free to wite us on

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。