[NGRAMS-REPO] Filters can now gather the children

parent 14121cc6
This diff is collapsed.
...@@ -23,7 +23,7 @@ module Gargantext.Text.List ...@@ -23,7 +23,7 @@ module Gargantext.Text.List
import Data.Set (Set) import Data.Set (Set)
import Data.Map (Map) import Data.Map (Map)
import Data.Text (Text) import Data.Text (Text)
import Gargantext.API.Ngrams (NgramsElement, mkNgramsElement, mSetFromList) import Gargantext.API.Ngrams (NgramsElement, mkNgramsElement, RootParent(..), mSetFromList)
import Gargantext.Core (Lang(..)) import Gargantext.Core (Lang(..))
import Gargantext.Core.Types (ListType(..), MasterCorpusId, UserCorpusId) import Gargantext.Core.Types (ListType(..), MasterCorpusId, UserCorpusId)
import Gargantext.Database.Metrics.NgramsByNode (getTficf', sortTficf, ngramsGroup, getNodesByNgramsUser, groupNodesByNgramsWith) import Gargantext.Database.Metrics.NgramsByNode (getTficf', sortTficf, ngramsGroup, getNodesByNgramsUser, groupNodesByNgramsWith)
...@@ -83,7 +83,7 @@ toNgramsElement (listType, (_stem, (_score, setNgrams))) = ...@@ -83,7 +83,7 @@ toNgramsElement (listType, (_stem, (_score, setNgrams))) =
Nothing Nothing
(mSetFromList children) (mSetFromList children)
childrenElems = map (\t -> mkNgramsElement t listType childrenElems = map (\t -> mkNgramsElement t listType
(Just parent) (Just $ RootParent parent parent)
(mSetFromList []) (mSetFromList [])
) children ) children
......
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