Consultas sobre sentimientos comunitarios y toxicidad

Ahh me ganaste. :slight_smile:

Pero aquí tienes uno para una publicación específica también, solo para no sentir que mi respuesta fue en vano:

-- [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

El topic_id y el post_number se pueden encontrar ambos en la URL, por lo que es bastante fácil de usar.

Topic_id:

Post_number:

5 Me gusta