Commit 808bc5bb authored by Alexandre Delanoë's avatar Alexandre Delanoë

[TEST Q] ok (needs some refact still)

parent 12dd69a3
Pipeline #1356 failed with stage
......@@ -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 "-" " "
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment