Skip to content

The sample is a console app that uses the ML.NET API to train a model that classifies and predicts sentiment as either positive or negative

Notifications You must be signed in to change notification settings

seckinbeduk/SentimentAnalysis

Repository files navigation

Sentiment Analysis

The sample is a console app that uses the ML.NET API to train a model that classifies and predicts sentiment as either positive or negative

Test data for prediction

IEnumerable<SentimentData> sentiments = new[]
               {
                new SentimentData
                {
                    SentimentText = "Contoso's 11 is a wonderful experience",
                    Sentiment = 0
                },
                new SentimentData
                {
                    SentimentText = "The acting in this movie is very bad",
                    Sentiment = 0
                },
                new SentimentData
                {
                    SentimentText = "Joe versus the Volcano Coffee Company is a great film.",
                    Sentiment = 0
                }
            };
            
            

Result

Sentiment Predictions
---------------------  
Sentiment: Contoso's 11 is a wonderful experience | Prediction: Positive
Sentiment: The acting in this movie is very bad | Prediction: Negative
Sentiment: Joe versus the Volcano Coffee Company is a great film. | Prediction: Positive

About

The sample is a console app that uses the ML.NET API to train a model that classifies and predicts sentiment as either positive or negative

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages