Commit 38ca4c31 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] Map list size

parent a2a48b8c
......@@ -141,6 +141,7 @@ buildNgramsTermsList :: Lang
-> Cmd err (Map NgramsType [NgramsElement])
buildNgramsTermsList _l _n _m s uCid mCid = do
candidates <- sortTficf Down <$> getTficf uCid mCid NgramsTerms
printDebug "candidates" (length candidates)
let
candidatesSize = 400
......
......@@ -34,8 +34,8 @@ getTficf :: UserCorpusId
-> NgramsType
-> Cmd err (Map Text Double)
getTficf cId mId nt = do
mapTextDoubleLocal <- Map.filter (> 1)
<$> Map.map (fromIntegral . Set.size)
mapTextDoubleLocal <- {- Map.filter (> 1)
<$> -} Map.map (fromIntegral . Set.size)
<$> getNodesByNgramsUser cId nt
mapTextDoubleGlobal <- Map.map fromIntegral
......
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