Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
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
Julien Moutinho
haskell-gargantext
Commits
461124e8
Commit
461124e8
authored
Dec 20, 2022
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flow] fix hardcoded list size in build terms
parent
e71c52ec
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
11 deletions
+8
-11
Flow.hs
src/Gargantext/API/Flow.hs
+0
-1
Hal.hs
src/Gargantext/Core/Text/Corpus/API/Hal.hs
+0
-1
List.hs
src/Gargantext/Core/Text/List.hs
+6
-6
Flow.hs
src/Gargantext/Database/Action/Flow.hs
+1
-1
Add.hs
src/Gargantext/Database/Query/Table/Node/Document/Add.hs
+1
-2
No files found.
src/Gargantext/API/Flow.hs
View file @
461124e8
...
...
@@ -29,4 +29,3 @@ data OutputFlow
flow
::
Flow
->
OutputFlow
flow
=
undefined
src/Gargantext/Core/Text/Corpus/API/Hal.hs
View file @
461124e8
...
...
@@ -63,4 +63,3 @@ toDoc' la (HAL.Corpus i t ab d s aus affs struct_id) = do
,
_hd_publication_minute
=
Nothing
,
_hd_publication_second
=
Nothing
,
_hd_language_iso2
=
Just
$
(
pack
.
show
)
la
}
src/Gargantext/Core/Text/List.hs
View file @
461124e8
...
...
@@ -159,7 +159,7 @@ buildNgramsTermsList :: ( HasNodeError err
->
GroupParams
->
(
NgramsType
,
MapListSize
)
->
m
(
Map
NgramsType
[
NgramsElement
])
buildNgramsTermsList
user
uCid
mCid
mfslw
groupParams
(
nt
,
_
mapListSize
)
=
do
buildNgramsTermsList
user
uCid
mCid
mfslw
groupParams
(
nt
,
MapListSize
mapListSize
)
=
do
-- Filter 0 With Double
-- Computing global speGen score
...
...
@@ -179,13 +179,13 @@ buildNgramsTermsList user uCid mCid mfslw groupParams (nt, _mapListSize)= do
)
printDebug
"[buildNgramsTermsList: Flow Social List / end]"
nt
let
!
ngramsKeys
=
HashSet
.
fromList
$
List
.
take
1000
$
HashSet
.
toList
$
HashMap
.
keysSet
allTerms
let
!
ngramsKeys
=
HashSet
.
fromList
$
List
.
take
mapListSize
$
HashSet
.
toList
$
HashMap
.
keysSet
allTerms
printDebug
"[buildNgramsTermsList: ngramsKeys]"
(
HashSet
.
size
ngramsKeys
)
!
groupParams'
<-
getGroupParams
groupParams
(
HashSet
.
map
(
text2ngrams
.
unNgramsTerm
)
ngramsKeys
)
printDebug
"[buildNgramsTermsList: groupParams']"
(
""
::
Text
)
printDebug
"[buildNgramsTermsList: groupParams']"
(
""
::
Text
)
let
!
socialLists_Stemmed
=
addScoreStem
groupParams'
ngramsKeys
socialLists
...
...
src/Gargantext/Database/Action/Flow.hs
View file @
461124e8
src/Gargantext/Database/Query/Table/Node/Document/Add.hs
View file @
461124e8
...
...
@@ -78,4 +78,3 @@ instance ToRow InputData where
,
toField
(
0
::
Int
)
,
toField
(
1
::
Int
)
]
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