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
198
Issues
198
List
Board
Labels
Milestones
Merge Requests
12
Merge Requests
12
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
gargantext
haskell-gargantext
Commits
8d10a2f1
Commit
8d10a2f1
authored
Aug 30, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] Lists of ngrams.
parent
e1feabb5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
Flow.hs
src/Gargantext/Database/Flow.hs
+0
-3
List.hs
src/Gargantext/Text/List.hs
+2
-1
No files found.
src/Gargantext/Database/Flow.hs
View file @
8d10a2f1
...
@@ -244,7 +244,6 @@ insertMasterDocs c lang hs = do
...
@@ -244,7 +244,6 @@ insertMasterDocs c lang hs = do
pure
$
map
reId
ids
pure
$
map
reId
ids
type
CorpusName
=
Text
type
CorpusName
=
Text
getOrMkRootWithCorpus
::
(
HasNodeError
err
,
MkCorpus
a
)
getOrMkRootWithCorpus
::
(
HasNodeError
err
,
MkCorpus
a
)
...
@@ -283,8 +282,6 @@ getOrMkRootWithCorpus username cName c = do
...
@@ -283,8 +282,6 @@ getOrMkRootWithCorpus username cName c = do
------------------------------------------------------------------------
------------------------------------------------------------------------
viewUniqId'
::
UniqId
a
=>
a
->
(
HashId
,
a
)
viewUniqId'
::
UniqId
a
=>
a
->
(
HashId
,
a
)
viewUniqId'
d
=
maybe
err
(
\
h
->
(
h
,
d
))
(
view
uniqId
d
)
viewUniqId'
d
=
maybe
err
(
\
h
->
(
h
,
d
))
(
view
uniqId
d
)
where
where
...
...
src/Gargantext/Text/List.hs
View file @
8d10a2f1
...
@@ -73,7 +73,8 @@ buildNgramsOthersList uCid groupIt nt = do
...
@@ -73,7 +73,8 @@ buildNgramsOthersList uCid groupIt nt = do
let
let
all'
=
Map
.
toList
ngs
all'
=
Map
.
toList
ngs
pure
$
(
toElements
GraphTerm
$
take
10
all'
)
<>
(
toElements
CandidateTerm
$
drop
10
all'
)
pure
$
(
toElements
GraphTerm
all'
)
<>
(
toElements
CandidateTerm
all'
)
--pure $ (toElements GraphTerm $ take 10 all') <> (toElements CandidateTerm $ drop 10 all')
where
where
toElements
nType
x
=
Map
.
fromList
[(
nt
,
[
mkNgramsElement
t
nType
Nothing
(
mSetFromList
[]
)
toElements
nType
x
=
Map
.
fromList
[(
nt
,
[
mkNgramsElement
t
nType
Nothing
(
mSetFromList
[]
)
|
(
t
,
_ns
)
<-
x
|
(
t
,
_ns
)
<-
x
...
...
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