Interface OffensiveAnalysis
public interface OffensiveAnalysis
OffensiveAnalysis
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Dedicated Builderstatic class
A label, either SAFE or UNSAFE, that classifies the analyzed content. -
Method Summary
Modifier and TypeMethodDescriptionstatic OffensiveAnalysis.Builder
builder()
Getting builderA label, either SAFE or UNSAFE, that classifies the analyzed content.Either the message text or the URL of the image that was analyzed.getScore()
The likelihood that the assigned evaluation represents the analyzed message correctly.getUrl()
URL of the image that was analyzed.
-
Method Details
-
getMessage
String getMessage()Either the message text or the URL of the image that was analyzed.- Returns:
- message
-
getUrl
String getUrl()URL of the image that was analyzed.- Returns:
- url
-
getEvaluation
OffensiveAnalysis.EvaluationEnum getEvaluation()A label, either SAFE or UNSAFE, that classifies the analyzed content.- Returns:
- evaluation
-
getScore
Float getScore()The likelihood that the assigned evaluation represents the analyzed message correctly. 1 is the maximum value, representing the highest likelihood that the content of the message matches the evaluation. 0 is the minimum value, representing the lowest likelihood that the content of the message matches the evaluation.- Returns:
- score
-
builder
Getting builder- Returns:
- New Builder instance
-