EmotionScores

public struct EmotionScores : Codable, Equatable

EmotionScores.

  • Anger score from 0 to 1. A higher score means that the text is more likely to convey anger.

    Declaration

    Swift

    public var anger: Double?
  • Disgust score from 0 to 1. A higher score means that the text is more likely to convey disgust.

    Declaration

    Swift

    public var disgust: Double?
  • Fear score from 0 to 1. A higher score means that the text is more likely to convey fear.

    Declaration

    Swift

    public var fear: Double?
  • joy

    Joy score from 0 to 1. A higher score means that the text is more likely to convey joy.

    Declaration

    Swift

    public var joy: Double?
  • Sadness score from 0 to 1. A higher score means that the text is more likely to convey sadness.

    Declaration

    Swift

    public var sadness: Double?