mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-03-06 17:30:20 +00:00
This PR adds new reports for displaying information about post sentiments grouped by date and emotions group by TL. Depends on discourse/discourse#24274
14 lines
442 B
Ruby
14 lines
442 B
Ruby
# frozen_string_literal: true
|
|
|
|
Fabricator(:classification_result) { target { Fabricate(:post) } }
|
|
|
|
Fabricator(:sentiment_classification, from: :classification_result) do
|
|
classification_type "sentiment"
|
|
classification { { negative: 72, neutral: 23, positive: 4 } }
|
|
end
|
|
|
|
Fabricator(:emotion_classification, from: :classification_result) do
|
|
classification_type "emotion"
|
|
classification { { negative: 72, neutral: 23, positive: 4 } }
|
|
end
|