Skip to main content

CommentRelevanceResult

Represents the result of comment relevance analysis.

from respectify.schemas import CommentRelevanceResult

Fields

on_topic

On-topic analysis result

result.on_topic: OnTopicResult

banned_topics

Banned topics analysis result

result.banned_topics: BannedTopicsResult

Sub-types

OnTopicResult

Represents whether a comment is on-topic.

FieldTypeDescription
reasoningstrExplanation of the relevance analysis
on_topicboolWhether the comment is on-topic
confidencefloat # 0.0-1.0Confidence level (0.0=low, 1.0=high)

BannedTopicsResult

Represents analysis of banned topics in a comment.

FieldTypeDescription
reasoningstrExplanation of the banned topics analysis
banned_topicsList[str]List of banned topics detected
quantity_on_banned_topicsfloat # 0.0-1.0Proportion discussing banned topics (0.0=none, 1.0=entirely)
confidencefloat # 0.0-1.0Confidence level (0.0=low, 1.0=high)