Commit 0ff502e5 authored by Administrator's avatar Administrator

[TESTS] SQL simple with sum and sqrt scores

parent f1cca04a
SELECT
100 as "NodeType Cooc", x.ngram_id, y.ngram_id, SQRT(SUM(x.occurences * y.occurences)) AS score
FROM
node_node_ngram AS x
INNER JOIN
node_node_ngram AS y
ON
x.node_id = y.node_id
AND
x.ngram_id <> y.ngram_id
GROUP BY
x.ngram_id, y.ngram_id
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment