2023-11-08 08:50:37 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-11-08 12:58:35 -05:00
|
|
|
Fabricator(:classification_result) do
|
|
|
|
target { Fabricate(:post) }
|
|
|
|
classification_type "sentiment"
|
|
|
|
end
|
2023-11-08 08:50:37 -05:00
|
|
|
|
|
|
|
Fabricator(:sentiment_classification, from: :classification_result) do
|
2023-11-08 12:58:35 -05:00
|
|
|
model_used "sentiment"
|
2023-11-08 08:50:37 -05:00
|
|
|
classification { { negative: 72, neutral: 23, positive: 4 } }
|
|
|
|
end
|
|
|
|
|
|
|
|
Fabricator(:emotion_classification, from: :classification_result) do
|
2023-11-08 12:58:35 -05:00
|
|
|
model_used "emotion"
|
2023-11-08 08:50:37 -05:00
|
|
|
classification { { negative: 72, neutral: 23, positive: 4 } }
|
|
|
|
end
|