getSentiment: Machine Learning センチメント アナライザー変換

自然言語のテキストをスコアリングし、テキストのセンチメントが正である確率を含む列を作成します。

使用方法

  getSentiment(vars, ...)

引数

vars

変換する文字ベクトルまたは変数名のリスト。 named の場合、名前は作成される新しい変数名を表します。

...

コンピューティング エンジンに送信される追加の引数。

説明

getSentiment 変換では、自然言語のテキストのセンチメントが正である確率を返します。 現在サポートされているのは
英語だけです。

値

変換を定義する maml オブジェクト。

作成者

Microsoft Corporation Microsoft Technical Support

こちらもご覧ください

rxFastTrees、rxFastForest、rxNeuralNet、rxOneClassSvm、rxLogisticRegression、rxFastLinear。

使用例


 # Create the data
 CustomerReviews <- data.frame(Review = c(
   "I really did not like the taste of it",
   "It was surprisingly quite good!",
   "I will never ever ever go to that place again!!"),
   stringsAsFactors = FALSE)

 # Get the sentiment scores
 sentimentScores <- rxFeaturize(data = CustomerReviews, 
                                mlTransforms = getSentiment(vars = list(SentimentScore = "Review")))

 # Let's translate the score to something more meaningful
 sentimentScores$PredictedRating <- ifelse(sentimentScores$SentimentScore > 0.6, 
                                           "AWESOMENESS", "BLAH")

 # Let's look at the results
 sentimentScores