Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
f76b6997
Commit
f76b6997
authored
Oct 30, 2014
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TESTS] SQL requests for cooccurrences.
parent
21417615
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1520 additions
and
5346 deletions
+1520
-5346
Listes-checkpoint.ipynb
.ipynb_checkpoints/Listes-checkpoint.ipynb
+806
-436
Listes.ipynb
Listes.ipynb
+695
-4906
cooc_whitelist_sum.sql
sql/cooc_whitelist_sum.sql
+3
-4
new.sql
sql/new.sql
+16
-0
No files found.
.ipynb_checkpoints/Listes-checkpoint.ipynb
View file @
f76b6997
This diff is collapsed.
Click to expand it.
Listes.ipynb
View file @
f76b6997
This diff is collapsed.
Click to expand it.
sql/cooc_whitelist_sum.sql
View file @
f76b6997
...
@@ -6,10 +6,7 @@ SELECT
...
@@ -6,10 +6,7 @@ SELECT
FROM
FROM
node_node_ngram
AS
x
node_node_ngram
AS
x
INNER
JOIN
INNER
JOIN
node_node_ngram
AS
y
ON
x
.
node_id
=
y
.
node_id
node_node_ngram
AS
y
ON
x
.
node_id
=
y
.
node_id
WHERE
WHERE
...
@@ -23,4 +20,6 @@ x.ngram_id <> y.ngram_id
...
@@ -23,4 +20,6 @@ x.ngram_id <> y.ngram_id
GROUP
BY
GROUP
BY
x
.
ngram_id
,
y
.
ngram_id
x
.
ngram_id
,
y
.
ngram_id
HAVING
score
>
30
LIMIT
1000
LIMIT
1000
sql/new.sql
0 → 100644
View file @
f76b6997
INSERT
INTO
node_nodengramngram
(
node_id
,
ngramX_id
,
ngramY_id
,
score
)
SELECT
173
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
y
.
node_id
=
x
.
node_id
INNER
JOIN
node_node_ngram
AS
n
ON
WHERE
x
.
ngram_id
<>
y
.
ngram_id
GROUP
BY
x
.
ngram_id
,
y
.
ngram_id
HAVING
score
>
30
LIMIT
1000
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment