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
f1f9312e
Commit
f1f9312e
authored
Nov 25, 2015
by
PkSM3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[UPDATE] pls add ngrams.occurrences (here i commented its usage)
parent
9fabf7ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
workflow.py
ngram/workflow.py
+3
-3
projects.html
templates/projects.html
+1
-1
No files found.
ngram/workflow.py
View file @
f1f9312e
...
@@ -6,7 +6,7 @@ from ngram.stop import compute_stop
...
@@ -6,7 +6,7 @@ from ngram.stop import compute_stop
from
ngram.group
import
compute_groups
from
ngram.group
import
compute_groups
from
gargantext_web.db
import
get_or_create_node
from
gargantext_web.db
import
get_or_create_node
from
ngram.mapList
import
compute_mapList
from
ngram.mapList
import
compute_mapList
from
ngram.occurrences
import
compute_occs
#
from ngram.occurrences import compute_occs
from
gargantext_web.db
import
session
,
Node
,
NodeNgram
from
gargantext_web.db
import
session
,
Node
,
NodeNgram
from
admin.utils
import
WorkflowTracking
from
admin.utils
import
WorkflowTracking
...
@@ -47,8 +47,8 @@ def ngram_workflow(corpus, n=5000):
...
@@ -47,8 +47,8 @@ def ngram_workflow(corpus, n=5000):
update_state
.
processing_
(
corpus
,
"TF-IDF local score"
)
update_state
.
processing_
(
corpus
,
"TF-IDF local score"
)
compute_tfidf
(
corpus
)
compute_tfidf
(
corpus
)
update_state
.
processing_
(
corpus
,
"OCCS local score"
)
#
update_state.processing_(corpus, "OCCS local score")
compute_occs
(
corpus
)
#
compute_occs(corpus)
#corpus=session.query(Node).filter(Node.id==540420).first()
#corpus=session.query(Node).filter(Node.id==540420).first()
...
...
templates/projects.html
View file @
f1f9312e
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
data-content=
'
data-content=
'
<ul>
<ul>
<li> Rename </li>
<li> Rename </li>
<li>
Add new corpus
</li>
<li>
<a href="/project/{{ project.id }}">Add new corpus</a>
</li>
<li><a href="/delete/{{ project.id }}">Delete</a></li>
<li><a href="/delete/{{ project.id }}">Delete</a></li>
</ul>
</ul>
'
>
Manage
</button>
'
>
Manage
</button>
...
...
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