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
3ffa1c51
Commit
3ffa1c51
authored
Oct 29, 2014
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TESTS] SQL NUMPY array from nodes.
parent
3e12e57f
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1765 additions
and
15 deletions
+1765
-15
Listes-checkpoint.ipynb
.ipynb_checkpoints/Listes-checkpoint.ipynb
+988
-0
Listes.ipynb
Listes.ipynb
+759
-10
gargantext_web_tutorial.ipynb
gargantext_web_tutorial.ipynb
+11
-1
admin.py
node/admin.py
+2
-1
cooc_simple_sum.sql
sql/cooc_simple_sum.sql
+1
-1
cooc_whitelist_sum.sql
sql/cooc_whitelist_sum.sql
+4
-2
No files found.
.ipynb_checkpoints/Listes-checkpoint.ipynb
0 → 100644
View file @
3ffa1c51
This diff is collapsed.
Click to expand it.
Listes.ipynb
View file @
3ffa1c51
This diff is collapsed.
Click to expand it.
gargantext_web_tutorial.ipynb
View file @
3ffa1c51
{
"metadata": {
"name": "",
"signature": "sha256:
92c58fbc1aad2501dd486f1bfd40ad7fbe605f697fea30c71f3c0a31a36766cf
"
"signature": "sha256:
d0ac96b232bdca40d2b67ddfc85c941e41c3760733e29c981ec727196317e1a1
"
},
"nbformat": 3,
"nbformat_minor": 0,
...
...
@@ -1619,6 +1619,16 @@
"outputs": [],
"prompt_number": 20
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"select t1.terms_id , \n"
],
"language": "python",
"metadata": {},
"outputs": []
},
{
"cell_type": "markdown",
"metadata": {},
...
...
node/admin.py
View file @
3ffa1c51
...
...
@@ -2,7 +2,7 @@ from django.contrib import admin
from
django.forms
import
ModelForm
,
ModelChoiceField
from
nested_inlines.admin
import
NestedModelAdmin
,
NestedStackedInline
,
NestedTabularInline
from
node.models
import
NodeType
,
Language
,
Node
,
Project
,
Corpus
,
Document
,
DatabaseType
,
Resource
from
node.models
import
NodeType
,
Language
,
Node
,
Project
,
Corpus
,
Document
,
DatabaseType
,
Resource
,
Node_Ngram
class
ResourceInLine
(
admin
.
TabularInline
):
model
=
Resource
...
...
@@ -137,4 +137,5 @@ admin.site.register(Project, ProjectAdmin)
admin
.
site
.
register
(
Corpus
,
CorpusAdmin
)
admin
.
site
.
register
(
Document
,
DocumentAdmin
)
admin
.
site
.
register
(
Node_Ngram
)
sql/cooc_simple_sum.sql
View file @
3ffa1c51
SELECT
177
as
node_id
,
x
.
ngram_id
as
ngramX_id
,
y
.
ngram_id
as
ngramY_id
,
COUNT
(
*
)
AS
score
id
,
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
...
...
sql/cooc_whitelist_sum.sql
View file @
3ffa1c51
INSERT
INTO
node_nodengramngram
(
node_id
,
"ngramX_id"
,
"ngramY_id"
,
score
)
SELECT
177
as
node_id
,
x
.
ngram_id
as
ngramX_id
,
y
.
ngram_id
as
ngramY
_id
,
COUNT
(
*
)
AS
score
177
as
node_id
,
x
.
ngram_id
,
y
.
ngram
_id
,
COUNT
(
*
)
AS
score
FROM
node_node_ngram
AS
x
...
...
@@ -21,4 +23,4 @@ x.ngram_id <> y.ngram_id
GROUP
BY
x
.
ngram_id
,
y
.
ngram_id
LIMIT
10
LIMIT
10
00
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