コミュニティの感情と有害性に関する質問

ああ、先を越されましたね。:slight_smile:

しかし、特定の投稿用のものも用意しました。無駄な返信だと感じないようにするためです。

-- [params]
-- topic_id :topic_id
-- int :post_number

SELECT
    cr.target_id as post_id,
    cr.model_used,
    cr.classification->'negative' as negative,
    cr.classification->'neutral' as neutral,
    cr.classification->'positive' as positive
FROM classification_results cr
  JOIN posts p ON p.id = cr.target_id
WHERE cr.model_used = 'sentiment'
  AND p.topic_id = :topic_id
  AND p.post_number = :post_number

topic_idpost_number はどちらも URL で見つけることができるため、非常にユーザーフレンドリーです。

Topic_id:

Post_number:

「いいね!」 5