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