Class CategoryScores

java.lang.Object
org.springframework.ai.moderation.CategoryScores

public final class CategoryScores extends Object
This class represents the scores for different categories of content. Each category has a score ranging from 0.0 to 1.0. The scores represent the severity or intensity of the content in each respective category.
Since:
1.0.0
Author:
Ahmed Yousri, Ilayaperumal Gopinathan, Ricken Bazolo, Jonghoon Park
  • Method Details

    • builder

      public static CategoryScores.Builder builder()
    • getSexual

      public double getSexual()
    • getHate

      public double getHate()
    • getHarassment

      public double getHarassment()
    • getSelfHarm

      public double getSelfHarm()
    • getSexualMinors

      public double getSexualMinors()
    • getHateThreatening

      public double getHateThreatening()
    • getViolenceGraphic

      public double getViolenceGraphic()
    • getSelfHarmIntent

      public double getSelfHarmIntent()
    • getSelfHarmInstructions

      public double getSelfHarmInstructions()
    • getHarassmentThreatening

      public double getHarassmentThreatening()
    • getViolence

      public double getViolence()
    • getDangerousAndCriminalContent

      public double getDangerousAndCriminalContent()
    • getHealth

      public double getHealth()
    • getFinancial

      public double getFinancial()
    • getLaw

      public double getLaw()
    • getPii

      public double getPii()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object