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
9ed1dc75
Commit
9ed1dc75
authored
Dec 15, 2015
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] Exec for test.
parent
76f35de3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
exec.py
exec.py
+11
-5
No files found.
exec.py
View file @
9ed1dc75
...
...
@@ -11,8 +11,10 @@ from ngram.mapList import compute_mapList
from
gargantext_web.db
import
NodeNgram
from
admin.utils
import
WorkflowTracking
from
ngram.importExport
import
exportNgramList
,
importNgramList
from
analysis.periods
import
phylo_clusters
from
ngram.occurrences
import
compute_occs
def
ngram_workflow
(
corpus
,
n
=
5000
):
'''
...
...
@@ -50,13 +52,17 @@ def ngram_workflow(corpus, n=5000):
# update_state.processing_(corpus, "TF-IDF local score")
# compute_tfidf(corpus)
# update_state.processing_(corpus, "OCCS local score")
#
compute_occs(corpus)
update_state
.
processing_
(
corpus
,
"0"
)
compute_occs
(
corpus
)
#
update_state.processing_(corpus, "0")
if
__name__
==
"__main__"
:
node_id
=
sys
.
argv
[
1
]
corpus
=
session
.
query
(
Node
)
.
filter
(
Node
.
id
==
node_id
)
.
first
()
exportNgramList
(
corpus
,
"list.csv"
)
ngram_workflow
(
corpus
)
#exportNgramList(corpus, "list.csv")
#importNgramList(corpus, "list.csv")
#ngram_workflow(corpus)
#phylo_clusters(corpus, range(2012,2016))
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