"Sentiment" (組込み分類器)
"Sentiment" (組込み分類器)
テキストの断片から表されている感情を判別する.
クラス
例題
すべて開く すべて閉じる例 (2)
組込みの"Sentiment"分類器を使ってレビューの心証を推測する:
Classify["Sentiment", "I enjoy working in this company"]Classify["Sentiment", {"I am so sad", "My phone broke again", "I love this movie"}]Classify["Sentiment", "There is nothing good about the fellas in this movie", "Probabilities"]この分類器のClassifierFunctionを得る:
c = Classify["Sentiment"]c[{"I love this movie", "I am so sad", "My phone broke again"}]スコープ (1)
組込み分類器に対応するClassifierFunctionをロードする:
c = Classify["Sentiment"]Information[c, "Classes"]オプション (2)
ClassPriors (1)
カスタムのClassPriorsを使って可能な出力を制限する:
Classify["Sentiment", "There is nothing good about the fellas in this movie", ClassPriors -> <|"Negative" -> 0.5, "Neutral" -> 0.5|>]IndeterminateThreshold (1)
カスタムのIndeterminateThresholdを使う:
Classify["Sentiment", "There is nothing good about the fellas in this movie", IndeterminateThreshold -> 0.7]関連するガイド
-
▪
- 機械学習
履歴
2018 で導入 (11.3)