gargantext-0.0.7.1.5.3: Search, map, share
Copyright(c) CNRS 2017-Present
LicenseAGPL + CECILL v3
Maintainerteam@gargantext.org
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageHaskell2010

Gargantext.Core.Text.Ngrams

Description

 
Synopsis

Documentation

data NgramsType #

Main Ngrams Types | Typed Ngrams Typed Ngrams localize the context of the ngrams ngrams in source field of document has Sources Type ngrams in authors field of document has Authors Type ngrams in text fields of documents has Terms Type (i.e. either title or abstract)

Instances

Instances details
Arbitrary NgramsType # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

FromJSON NgramsType # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

FromJSONKey NgramsType # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

ToJSON NgramsType # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

ToJSONKey NgramsType # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

Bounded NgramsType # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

Enum NgramsType # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

Generic NgramsType # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

Associated Types

type Rep NgramsType :: Type -> Type #

Read NgramsType # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

Show NgramsType # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

HasDBid NgramsType # 
Instance details

Defined in Gargantext.Database.Schema.Ngrams

Eq NgramsType # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

Ord NgramsType # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

FromHttpApiData NgramsType # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

ToHttpApiData NgramsType # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

FromField NgramsType # 
Instance details

Defined in Gargantext.Database.Schema.Ngrams

ToField NgramsType # 
Instance details

Defined in Gargantext.Database.Schema.Ngrams

Methods

toField :: NgramsType -> Action #

Serialise NgramsType # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

ToParamSchema NgramsType # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

ToSchema NgramsType # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

HasSwagger (WithCustomErrorScheme GargAPI) # 
Instance details

Defined in Gargantext.API.Routes

DefaultFromField SqlJsonb (Archive NgramsState' NgramsStatePatch') # 
Instance details

Defined in Gargantext.Core.NodeStory.Types

FromHttpApiData (Map NgramsType (Versioned NgramsTableMap)) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToHttpApiData (Map NgramsType (Versioned NgramsTableMap)) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

FromField (PatchMap NgramsType (PatchMap NodeId NgramsTablePatch)) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

FromField (Archive NgramsState' NgramsStatePatch') # 
Instance details

Defined in Gargantext.Core.NodeStory.Types

type Rep NgramsType # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

type Rep NgramsType = D1 ('MetaData "NgramsType" "Gargantext.Core.Text.Ngrams" "gargantext-0.0.7.1.5.3-inplace" 'False) ((C1 ('MetaCons "Authors" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Institutes" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Sources" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NgramsTerms" 'PrefixI 'False) (U1 :: Type -> Type)))

data Ngrams #

Constructors

UnsafeNgrams 

Instances

Instances details
Generic Ngrams # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

Associated Types

type Rep Ngrams :: Type -> Type #

Methods

from :: Ngrams -> Rep Ngrams x #

to :: Rep Ngrams x -> Ngrams #

Show Ngrams # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

Eq Ngrams # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

Methods

(==) :: Ngrams -> Ngrams -> Bool #

(/=) :: Ngrams -> Ngrams -> Bool #

Ord Ngrams # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

Hashable Ngrams # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

Methods

hashWithSalt :: Int -> Ngrams -> Int #

hash :: Ngrams -> Int #

FromField Ngrams # 
Instance details

Defined in Gargantext.Database.Schema.Ngrams

ToRow Ngrams # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

Methods

toRow :: Ngrams -> [Action] #

type Rep Ngrams # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

type Rep Ngrams = D1 ('MetaData "Ngrams" "Gargantext.Core.Text.Ngrams" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "UnsafeNgrams" 'PrefixI 'True) (S1 ('MetaSel ('Just "_ngramsTerms") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "_ngramsSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

data NgramsT a #

Constructors

NgramsT 

Instances

Instances details
Functor NgramsT # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

Methods

fmap :: (a -> b) -> NgramsT a -> NgramsT b #

(<$) :: a -> NgramsT b -> NgramsT a #

Generic (NgramsT a) # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

Associated Types

type Rep (NgramsT a) :: Type -> Type #

Methods

from :: NgramsT a -> Rep (NgramsT a) x #

to :: Rep (NgramsT a) x -> NgramsT a #

Show a => Show (NgramsT a) # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

Methods

showsPrec :: Int -> NgramsT a -> ShowS #

show :: NgramsT a -> String #

showList :: [NgramsT a] -> ShowS #

Eq a => Eq (NgramsT a) # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

Methods

(==) :: NgramsT a -> NgramsT a -> Bool #

(/=) :: NgramsT a -> NgramsT a -> Bool #

Ord a => Ord (NgramsT a) # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

Methods

compare :: NgramsT a -> NgramsT a -> Ordering #

(<) :: NgramsT a -> NgramsT a -> Bool #

(<=) :: NgramsT a -> NgramsT a -> Bool #

(>) :: NgramsT a -> NgramsT a -> Bool #

(>=) :: NgramsT a -> NgramsT a -> Bool #

max :: NgramsT a -> NgramsT a -> NgramsT a #

min :: NgramsT a -> NgramsT a -> NgramsT a #

type Rep (NgramsT a) # 
Instance details

Defined in Gargantext.Core.Text.Ngrams

type Rep (NgramsT a) = D1 ('MetaData "NgramsT" "Gargantext.Core.Text.Ngrams" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "NgramsT" 'PrefixI 'True) (S1 ('MetaSel ('Just "_ngramsType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NgramsType) :*: S1 ('MetaSel ('Just "_ngramsT") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 a)))

ngramsT :: forall a a. Lens (NgramsT a) (NgramsT a) a a #