Commit 3e12e57f authored by Administrator's avatar Administrator

[TESTS] SQL with synonymes (KO)

parent 91a62f90
SELECT SELECT
100 as "NodeType Cooc", x.ngram_id, y.ngram_id, COUNT(*) AS score 177 as node_id, x.ngram_id as ngramX_id, y.ngram_id as ngramY_id, COUNT(*) AS score
FROM FROM
node_node_ngram AS x node_node_ngram AS x
......
-- TODO Add count for synonyms
SELECT
177 as node_id, x.ngram_id as ngramX_id, y.ngram_id as ngramY_id, COUNT(*) AS score
FROM
node_node_ngram AS x
INNER JOIN
node_node_ngram AS y
ON x.node_id = y.node_id
WHERE
x.id IN (SELECT id FROM node_node_ngram WHERE node_id = 173 )
AND
y.id IN (SELECT id FROM node_node_ngram WHERE node_id = 173 )
AND
x.ngram_id <> y.ngram_id
GROUP BY
x.ngram_id, y.ngram_id
LIMIT 10
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