Commit 13816c28 authored by delanoe's avatar delanoe

[FIX] hapax to 1.

parent b4f15d03
...@@ -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
......
...@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment