Copyright | (c) CNRS 2017-Present |
---|---|
License | AGPL + CECILL v3 |
Maintainer | team@gargantext.org |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- addScoreStem :: GroupParams -> HashSet NgramsTerm -> FlowCont NgramsTerm FlowListScores -> FlowCont NgramsTerm FlowListScores
- newtype StopSize = StopSize {
- unStopSize :: Int
- data GroupParams
- = GroupParams { }
- | GroupIdentity
- | GroupWithPosTag {
- _gwl_lang :: !Lang
- _gwl_nlp_config :: !NLPServerConfig
- _gwl_map :: !(HashMap Form Lem)
- groupWith :: GroupParams -> NgramsTerm -> NgramsTerm
- stemPatches :: GroupParams -> HashSet NgramsTerm -> [(NgramsTerm, NgramsPatch)]
- patches :: Map Stem (HashSet NgramsTerm) -> [(NgramsTerm, NgramsPatch)]
- patch :: HashSet NgramsTerm -> Maybe (NgramsTerm, NgramsPatch)
- gwl_nlp_config :: Traversal' GroupParams NLPServerConfig
- gwl_map :: Traversal' GroupParams (HashMap Form Lem)
- gwl_lang :: Traversal' GroupParams Lang
Documentation
addScoreStem :: GroupParams -> HashSet NgramsTerm -> FlowCont NgramsTerm FlowListScores -> FlowCont NgramsTerm FlowListScores #
data GroupParams #
TODO: group with 2 terms only can be discussed. Main purpose of this is offering a first grouping option to user and get some enriched data to better learn and improve that algo | Lenses instances at the end of this file
GroupParams | |
GroupIdentity | |
GroupWithPosTag | |
|
Instances
Show GroupParams # | |
Defined in Gargantext.Core.Text.List.Group.WithStem showsPrec :: Int -> GroupParams -> ShowS # show :: GroupParams -> String # showList :: [GroupParams] -> ShowS # | |
Eq GroupParams # | |
Defined in Gargantext.Core.Text.List.Group.WithStem (==) :: GroupParams -> GroupParams -> Bool # (/=) :: GroupParams -> GroupParams -> Bool # |
groupWith :: GroupParams -> NgramsTerm -> NgramsTerm #
stemPatches :: GroupParams -> HashSet NgramsTerm -> [(NgramsTerm, NgramsPatch)] #
patches :: Map Stem (HashSet NgramsTerm) -> [(NgramsTerm, NgramsPatch)] #
For now all NgramsTerm which have same stem are grouped together Parent is taken arbitrarly for now (TODO use a score like occ)
patch :: HashSet NgramsTerm -> Maybe (NgramsTerm, NgramsPatch) #
gwl_nlp_config :: Traversal' GroupParams NLPServerConfig #
Instances
gwl_map :: Traversal' GroupParams (HashMap Form Lem) #