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
Christian Merten
haskell-gargantext
Commits
a5013d31
Unverified
Commit
a5013d31
authored
Feb 28, 2019
by
Nicolas Pouillard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fake flow
parent
72a6c405
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
Flow.hs
src/Gargantext/Database/Flow.hs
+9
-3
No files found.
src/Gargantext/Database/Flow.hs
View file @
a5013d31
...
...
@@ -45,7 +45,7 @@ import Gargantext.Database.Config (userMaster, corpusMasterName)
import
Gargantext.Database.Flow.Utils
(
insertToNodeNgrams
)
--import Gargantext.Database.Metrics.TFICF (getTficf)
import
Gargantext.Text.Terms
(
extractTerms
)
import
Gargantext.Text.Metrics.TFICF
(
Tficf
(
..
))
--
import Gargantext.Text.Metrics.TFICF (Tficf(..))
import
qualified
Gargantext.Database.Node.Document.Add
as
Doc
(
add
)
import
Gargantext.Database.Metrics.NgramsByNode
(
getTficf'
,
sortTficf
,
ngramsGroup
)
import
Gargantext.Database.Node.Document.Insert
-- (insertDocuments, ReturnId(..), addUniqIdsDoc, addUniqIdsContact, ToDbData(..))
...
...
@@ -96,9 +96,11 @@ flowCorpus userName ff fp corpusName = do
(
_masterUserId
,
_masterRootId
,
masterCorpusId
)
<-
getOrMkRootWithCorpus
userMaster
""
-- /!\ this extract NgramsTerms Only
_ngs
<-
sortTficf
<$>
getTficf'
userCorpusId
masterCorpusId
(
ngramsGroup
EN
2
)
printDebug
"tficf size ngs"
(
length
_ngs
)
-- TODO getNgramsElement of NgramsType...
ngs
<-
getNgramsElementsWithParentNodeId
masterCorpusId
printDebug
"getNgramsElementsWithParentNodeId size ngs"
(
length
ngs
)
-- TEMP fix
let
masterUserId
=
2
...
...
@@ -312,7 +314,11 @@ flowListUser :: FlowCmdM env err m
flowListUser
uId
cId
ngsM
_n
=
do
lId
<-
getOrMkList
cId
uId
let
ngs
=
[]
let
ngs
=
[
"test"
<>
Text
.
pack
[
x
,
y
]
|
x
<-
[
'A'
..
'Z'
]
,
y
<-
[
'A'
..
'Z'
]
]
trace
(
"flowListBase"
<>
show
lId
)
flowListBase
lId
ngsM
...
...
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