public sealed class ClassificationCategory : IMessage<ClassificationCategory>, IEquatable<ClassificationCategory>, IDeepCloneable<ClassificationCategory>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Natural Language v2 API class ClassificationCategory.
Represents a category returned from the text classifier.
Implements
IMessageClassificationCategory, IEquatableClassificationCategory, IDeepCloneableClassificationCategory, IBufferMessage, IMessageNamespace
Google.Cloud.Language.V2Assembly
Google.Cloud.Language.V2.dll
Constructors
ClassificationCategory()
public ClassificationCategory()
ClassificationCategory(ClassificationCategory)
public ClassificationCategory(ClassificationCategory other)
Parameter | |
---|---|
Name | Description |
other |
ClassificationCategory |
Properties
Confidence
public float Confidence { get; set; }
The classifier's confidence of the category. Number represents how certain the classifier is that this category represents the given text.
Property Value | |
---|---|
Type | Description |
float |
Name
public string Name { get; set; }
The name of the category representing the document.
Property Value | |
---|---|
Type | Description |
string |
Severity
public float Severity { get; set; }
Optional. The classifier's severity of the category. This is only present when the ModerateTextRequest.ModelVersion is set to MODEL_VERSION_2, and the corresponding category has a severity score.
Property Value | |
---|---|
Type | Description |
float |