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
195
Issues
195
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
808bc5bb
Commit
808bc5bb
authored
Jan 19, 2021
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TEST Q] ok (needs some refact still)
parent
12dd69a3
Pipeline
#1356
failed with stage
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
WithStem.hs
src/Gargantext/Core/Text/List/Group/WithStem.hs
+3
-2
Terms.hs
src/Gargantext/Core/Text/Terms.hs
+1
-2
Flow.hs
src/Gargantext/Database/Action/Flow.hs
+2
-2
No files found.
src/Gargantext/Core/Text/List/Group/WithStem.hs
View file @
808bc5bb
...
...
@@ -77,8 +77,9 @@ groupWith (GroupParams l _m _n _) t =
$
Text
.
intercalate
" "
$
map
(
stem
l
)
-- . take n
$
Set
.
toList
$
Set
.
fromList
$
List
.
sort
-- $ Set.toList
-- $ Set.fromList
-- . (List.filter (\t -> Text.length t > m))
$
Text
.
splitOn
" "
$
Text
.
replace
"-"
" "
...
...
src/Gargantext/Core/Text/Terms.hs
View file @
808bc5bb
...
...
@@ -100,12 +100,11 @@ withLang (Unsupervised l n s m) ns = Unsupervised l n s m'
where
m'
=
case
m
of
Nothing
->
-- trace ("buildTries here" :: String)
Just
$
buildTries
n
(
fmap
toToken
Just
$
buildTries
n
$
fmap
toToken
$
uniText
$
Text
.
intercalate
" . "
$
List
.
concat
$
map
hasText
ns
)
just_m
->
just_m
withLang
l
_
=
l
...
...
src/Gargantext/Database/Action/Flow.hs
View file @
808bc5bb
...
...
@@ -68,7 +68,7 @@ import Gargantext.Core.Ext.IMT (toSchoolName)
import
Gargantext.Core.Ext.IMTUser
(
deserialiseImtUsersFromFile
)
import
Gargantext.Core.Flow.Types
import
Gargantext.Core.Text
import
Gargantext.Core.Text.List.Group.WithStem
(
{-StopSize(..),-}
GroupParams
(
..
))
import
Gargantext.Core.Text.List.Group.WithStem
(
StopSize
(
..
),
GroupParams
(
..
))
import
Gargantext.Core.Text.Corpus.Parsers
(
parseFile
,
FileFormat
)
import
Gargantext.Core.Text.List
(
buildNgramsLists
)
import
Gargantext.Core.Text.Terms
...
...
@@ -232,7 +232,7 @@ flowCorpusUser l user corpusName ctype ids = do
-- User List Flow
(
masterUserId
,
_masterRootId
,
masterCorpusId
)
<-
getOrMk_RootWithCorpus
(
UserName
userMaster
)
(
Left
""
)
ctype
--
let gp = (GroupParams l 2 3 (StopSize 3))
--let gp = (GroupParams l 2 3 (StopSize 3))
let
gp
=
GroupWithPosTag
l
CoreNLP
HashMap
.
empty
ngs
<-
buildNgramsLists
gp
user
userCorpusId
masterCorpusId
...
...
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