GroupDocs.Classification for .NET 20.10 Release Notes

Major Features

  • A new 3 classes Sentiment Classification taxonomy was added (positive/neutral/negative).
  • Sentiment Classification (Analysis) supports 4 languages now: English, Chinese, Spanish, and German.
  • Sentiment Classification is now multilingual: there is no need to select language(s) and input text can be multilingual.

All Changes

CLASSNET-72Add Spanish and German languages supportFeature
CLASSNET-74Add a new taxonomy for 3 classes Sentiment ClassificationFeature

Public API and Backward Incompatible Changes

Update SentimentClassifier class

SentimentConfig parameter of SentimentClassifier constructor has no effect now. It remains as a parameter for the back-compatibility.

var sentimentClassifier = new SentimentClassifier();
/// PositiveProbability method returns the probability of the positive sentiment.
var positiveProbability = sentimentClassifier.PositiveProbability("This is a new must-have thing.");
Console.WriteLine($"The probability of a positive sentiment is { positiveProbability }");
/// Classify method returns ClassificationResult object with the best class probability and name.
var response = sentimentClassifier.Classify("This is a new must-have thing.");
Console.WriteLine($"The best class name:{response.BestClassName}, probability: {response.BestClassProbability}");

Added a new taxonomy: Taxonomy.Sentiment3

Taxonomy.Sentiment3 categorize sentiments into Negative, Neutral or Positive classes and can be used with Classifier class

var classifier = new Classifier();
var response = classifier.Classify("This is a new must have thing.", taxonomy: Taxonomy.Sentiment3);

response = classifier.Classify("Esto es algo nuevo que debe tener.", taxonomy: Taxonomy.Sentiment3);

More resources

GitHub Examples

You may easily run the code above and see the feature in action in our GitHub examples:

Free Online App

Along with full-featured .NET library we provide simple but powerful free Apps.

You are welcome to classify texts and/or documents with free to use online GroupDocs Classification App.