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
13816c28
Commit
13816c28
authored
Oct 22, 2015
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] hapax to 1.
parent
b4f15d03
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
cooccurrences.py
analysis/cooccurrences.py
+1
-1
functions.py
analysis/functions.py
+2
-2
No files found.
analysis/cooccurrences.py
View file @
13816c28
...
@@ -18,7 +18,7 @@ def do_cooc(corpus=None
...
@@ -18,7 +18,7 @@ def do_cooc(corpus=None
,
start
=
None
,
end
=
None
,
start
=
None
,
end
=
None
,
limit
=
1000
,
limit
=
1000
,
isMonopartite
=
True
,
isMonopartite
=
True
,
apax
=
2
):
,
apax
=
1
):
'''
'''
Compute the cooccurence matrix and save it, returning NodeNgramNgram.node_id
Compute the cooccurence matrix and save it, returning NodeNgramNgram.node_id
For the moment list of paramters are not supported because, lists need to
For the moment list of paramters are not supported because, lists need to
...
...
analysis/functions.py
View file @
13816c28
...
@@ -30,7 +30,7 @@ def diag_null(x):
...
@@ -30,7 +30,7 @@ def diag_null(x):
return
x
-
x
*
scipy
.
eye
(
x
.
shape
[
0
])
return
x
-
x
*
scipy
.
eye
(
x
.
shape
[
0
])
def
do_distance
(
cooc_id
,
field1
=
None
,
field2
=
None
,
isMonopartite
=
True
,
apax
=
2
):
def
do_distance
(
cooc_id
,
field1
=
None
,
field2
=
None
,
isMonopartite
=
True
):
'''
'''
do_distance :: Int -> (Graph, Partition, {ids}, {weight})
do_distance :: Int -> (Graph, Partition, {ids}, {weight})
'''
'''
...
@@ -119,7 +119,7 @@ def get_cooc(request=None, corpus=None
...
@@ -119,7 +119,7 @@ def get_cooc(request=None, corpus=None
,
field1
=
'ngrams'
,
field2
=
'ngrams'
,
field1
=
'ngrams'
,
field2
=
'ngrams'
,
cooc_id
=
None
,
type
=
'node_link'
,
size
=
1000
,
cooc_id
=
None
,
type
=
'node_link'
,
size
=
1000
,
start
=
None
,
end
=
None
,
start
=
None
,
end
=
None
,
apax
=
2
,
apax
=
1
):
):
'''
'''
get_ccoc : to compute the graph.
get_ccoc : to compute the graph.
...
...
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