共用方式為


ClassificationCategory2 Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.vision.contentmoderator.models.ClassificationCategory2

public class ClassificationCategory2

The category2 score details of the text. <a href="https://aka.ms/textClassifyCategories">Click here</a> for more details on category classification.

Method Summary

Modifier and Type Method and Description
Double score()

Get the score value.

ClassificationCategory2 withScore(Double score)

Set the score value.

Method Details

score

public Double score()

Get the score value.

Returns:

the score value

withScore

public ClassificationCategory2 withScore(Double score)

Set the score value.

Parameters:

score - the score value to set

Returns:

the ClassificationCategory2 object itself.

Applies to