getSentiment
machine learning transform. Under the cover,
getSentiment
uses a pre-trained deep neural network model to featurize text and calculate sentiment score. You can then use the calculated sentiment score either directly or as an additional feature to feed to your own sentiment model as demonstrated in our code example.
rxLogisticRegression
and
rxFastForest
, using their default parameters. Each model has two versions, one includes the preSentiment (sentiment score calculated by
getSentiment
) as a feature and the other does not. We embedded the
featurizeText
machine learning transform in each model to extract n-gram features from the text data and directly feed the n-gram features to the model. But alternatively, you can also use the
rxFeaturize
function to save the n-gram features for reuse.
getSentiment
gives you just that much performance gain.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.