docs icon indicating copy to clipboard operation
docs copied to clipboard

Changing comments

Open OnlyChildRecords opened this issue 8 years ago • 5 comments

I've added negative comments to the predict method but they are being evaluated as positive? Am I doing something wrong?

  IEnumerable<SentimentData> sentiments = new[]
        {
            new SentimentData
            {
                SentimentText = "I suggest you kill yourself."  // evaluated as positive
            },
            new SentimentData
            {
                SentimentText = "He is the best, and the article should say that."
            }
        };

Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

OnlyChildRecords avatar Jul 17 '18 16:07 OnlyChildRecords

@GalOshri - Is this due to the small training dataset, or something else?

JRAlexander avatar Aug 16 '18 21:08 JRAlexander

I also did the tests. I did the tests with a small list, a medium-sized list, a large size list, then changed the version of the library from 0.3 to 0.4 and vice versa, but the result is the same as for @ OnlyChildRecords. In my opinion, it is currently risky to use Sentiment Analysis in a real environment

PavlinStefanov avatar Aug 29 '18 08:08 PavlinStefanov

I think it maybe to do with the training data. It's hard to guess if 0 or 1 represents a positive or negative comment because there are both positive and negative comments with 0's and 1' s and there is no explanation in the tutorial a to tell us if 1 or 0 represents positive or negative. For example:

1 ::::: Why are you threatening me? I'm not being disruptive, its you who is being disruptive. 1 == Goodbye Cruel World == I have decided to kill myself. My Dad died two weeks ago, and I wish to join him. I just wanted to say goodbye.

OnlyChildRecords avatar Aug 29 '18 09:08 OnlyChildRecords

try updating the FastTreeBinaryClassifier() hyperparameters to: NumLeaves = 50, NumTrees = 50, MinDocumentsInLeafs = 20.

JRAlexander avatar Sep 25 '18 21:09 JRAlexander

Closing this as I believe its resolved. Please reopen if that is not the case. Thanks!

JRAlexander avatar Sep 25 '18 21:09 JRAlexander