Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Przemyslaw Kaminski
haskell-gargantext
Commits
38ca4c31
Commit
38ca4c31
authored
Sep 09, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] Map list size
parent
a2a48b8c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
List.hs
src/Gargantext/Core/Text/List.hs
+1
-0
TFICF.hs
src/Gargantext/Database/Action/Metrics/TFICF.hs
+2
-2
No files found.
src/Gargantext/Core/Text/List.hs
View file @
38ca4c31
...
...
@@ -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
...
...
src/Gargantext/Database/Action/Metrics/TFICF.hs
View file @
38ca4c31
...
...
@@ -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
...
...
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