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
c54058e2
Commit
c54058e2
authored
Jan 20, 2016
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX]
parent
cd7db021
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
celery.py
gargantext_web/celery.py
+2
-1
mapList.py
ngram/mapList.py
+1
-1
occurrences.py
ngram/occurrences.py
+1
-1
No files found.
gargantext_web/celery.py
View file @
c54058e2
...
...
@@ -55,7 +55,8 @@ def apply_workflow(corpus_id):
update_state
.
processing_
(
corpus
,
"0"
)
session
.
remove
()
except
:
except
Exception
as
error
:
print
(
error
)
session
.
remove
()
@
shared_task
...
...
ngram/mapList.py
View file @
c54058e2
...
...
@@ -15,7 +15,7 @@ from sqlalchemy.orm import aliased
from
ngram.tools
import
insert_ngrams
import
csv
def
compute_mapList
(
corpus
,
limit
=
500
,
n
=
1
):
def
compute_mapList
(
corpus
,
limit
=
500
,
n
=
1
,
session
=
None
):
'''
According to Specificities and stoplist,
'''
...
...
ngram/occurrences.py
View file @
c54058e2
...
...
@@ -4,7 +4,7 @@ from gargantext_web.db import Node, NodeNgram, NodeNodeNgram
from
gargantext_web.db
import
get_or_create_node
from
admin.utils
import
DebugTime
def
compute_occs
(
corpus
):
def
compute_occs
(
corpus
,
session
=
None
):
'''
compute_occs :: Corpus -> IO ()
...
...
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