Commit 8d10a2f1 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] Lists of ngrams.

parent e1feabb5
......@@ -244,7 +244,6 @@ insertMasterDocs c lang hs = do
pure $ map reId ids
type CorpusName = Text
getOrMkRootWithCorpus :: (HasNodeError err, MkCorpus a)
......@@ -283,8 +282,6 @@ getOrMkRootWithCorpus username cName c = do
------------------------------------------------------------------------
viewUniqId' :: UniqId a => a -> (HashId, a)
viewUniqId' d = maybe err (\h -> (h,d)) (view uniqId d)
where
......
......@@ -73,7 +73,8 @@ buildNgramsOthersList uCid groupIt nt = do
let
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
toElements nType x = Map.fromList [(nt, [ mkNgramsElement t nType Nothing (mSetFromList [])
| (t,_ns) <- x
......
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