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

Description

 
Synopsis

Documentation

data Lang #

Language of a Text For simplicity, we suppose text has an homogenous language

  • EN == english
  • FR == french
  • DE == deutch
  • IT == italian
  • ES == spanish
  • PL == polish
  • ZH == chinese

... add your language and help us to implement it (:

All languages supported NOTE: Use international country codes https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes TODO This should be deprecated in favor of iso-639 library

Constructors

DE 
EL 
EN 
ES 
FR 
IT 
PL 
PT 
RU 
UK 
ZH 

Instances

Instances details
Arbitrary Lang # 
Instance details

Defined in Gargantext.Core

Methods

arbitrary :: Gen Lang #

shrink :: Lang -> [Lang] #

FromJSON Lang # 
Instance details

Defined in Gargantext.Core

ToJSON Lang # 
Instance details

Defined in Gargantext.Core

Bounded Lang # 
Instance details

Defined in Gargantext.Core

Enum Lang # 
Instance details

Defined in Gargantext.Core

Methods

succ :: Lang -> Lang #

pred :: Lang -> Lang #

toEnum :: Int -> Lang #

fromEnum :: Lang -> Int #

enumFrom :: Lang -> [Lang] #

enumFromThen :: Lang -> Lang -> [Lang] #

enumFromTo :: Lang -> Lang -> [Lang] #

enumFromThenTo :: Lang -> Lang -> Lang -> [Lang] #

Generic Lang # 
Instance details

Defined in Gargantext.Core

Associated Types

type Rep Lang :: Type -> Type #

Methods

from :: Lang -> Rep Lang x #

to :: Rep Lang x -> Lang #

Read Lang # 
Instance details

Defined in Gargantext.Core

Show Lang # 
Instance details

Defined in Gargantext.Core

Methods

showsPrec :: Int -> Lang -> ShowS #

show :: Lang -> String #

showList :: [Lang] -> ShowS #

HasDBid Lang # 
Instance details

Defined in Gargantext.Core

Methods

toDBid :: Lang -> Int #

lookupDBid :: Int -> Maybe Lang #

Eq Lang # 
Instance details

Defined in Gargantext.Core

Methods

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

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

Ord Lang # 
Instance details

Defined in Gargantext.Core

Methods

compare :: Lang -> Lang -> Ordering #

(<) :: Lang -> Lang -> Bool #

(<=) :: Lang -> Lang -> Bool #

(>) :: Lang -> Lang -> Bool #

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

max :: Lang -> Lang -> Lang #

min :: Lang -> Lang -> Lang #

Hashable Lang # 
Instance details

Defined in Gargantext.Core

Methods

hashWithSalt :: Int -> Lang -> Int #

hash :: Lang -> Int #

FromHttpApiData Lang # 
Instance details

Defined in Gargantext.Core

ToHttpApiData Lang # 
Instance details

Defined in Gargantext.Core

GQLType Lang # 
Instance details

Defined in Gargantext.Core

Associated Types

type KIND Lang :: DerivingKind #

ToSchema Lang # 
Instance details

Defined in Gargantext.Core

type Rep Lang # 
Instance details

Defined in Gargantext.Core

type Rep Lang = D1 ('MetaData "Lang" "Gargantext.Core" "gargantext-0.0.7.1.5.3-inplace" 'False) (((C1 ('MetaCons "DE" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EL" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "EN" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ES" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FR" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "IT" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PL" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PT" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "RU" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "UK" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ZH" 'PrefixI 'False) (U1 :: Type -> Type)))))
type KIND Lang # 
Instance details

Defined in Gargantext.Core

type KIND Lang = TYPE

withDefaultLanguage :: Maybe Lang -> Lang #

Defaults to EN in all those places where a language is mandatory, but an optional one has been passed.

defaultLanguage :: Lang #

The default Lang.

class HasDBid a where #

Methods

toDBid :: a -> Int #

lookupDBid :: Int -> Maybe a #

Instances

Instances details
HasDBid Lang # 
Instance details

Defined in Gargantext.Core

Methods

toDBid :: Lang -> Int #

lookupDBid :: Int -> Maybe Lang #

HasDBid PosTagAlgo # 
Instance details

Defined in Gargantext.Core

HasDBid NgramsType # 
Instance details

Defined in Gargantext.Database.Schema.Ngrams

HasDBid ListType # 
Instance details

Defined in Gargantext.Core.Types.Main

HasDBid NodeType # 
Instance details

Defined in Gargantext.Database.Admin.Config

data NLPServerConfig #

Constructors

NLPServerConfig 

Fields

Instances

Instances details
Generic NLPServerConfig # 
Instance details

Defined in Gargantext.Core

Associated Types

type Rep NLPServerConfig :: Type -> Type #

Show NLPServerConfig # 
Instance details

Defined in Gargantext.Core

Eq NLPServerConfig # 
Instance details

Defined in Gargantext.Core

type Rep NLPServerConfig # 
Instance details

Defined in Gargantext.Core

type Rep NLPServerConfig = D1 ('MetaData "NLPServerConfig" "Gargantext.Core" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "NLPServerConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "server") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 PosTagAlgo) :*: S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 URI)))

type Form = Text #

type Lem = Text #

data PosTagAlgo #

Constructors

CoreNLP 
JohnSnowServer 
Spacy 

Instances

Instances details
Generic PosTagAlgo # 
Instance details

Defined in Gargantext.Core

Associated Types

type Rep PosTagAlgo :: Type -> Type #

Read PosTagAlgo # 
Instance details

Defined in Gargantext.Core

Show PosTagAlgo # 
Instance details

Defined in Gargantext.Core

HasDBid PosTagAlgo # 
Instance details

Defined in Gargantext.Core

Eq PosTagAlgo # 
Instance details

Defined in Gargantext.Core

Ord PosTagAlgo # 
Instance details

Defined in Gargantext.Core

Hashable PosTagAlgo # 
Instance details

Defined in Gargantext.Core

GQLType PosTagAlgo # 
Instance details

Defined in Gargantext.Core

Associated Types

type KIND PosTagAlgo :: DerivingKind #

type Rep PosTagAlgo # 
Instance details

Defined in Gargantext.Core

type Rep PosTagAlgo = D1 ('MetaData "PosTagAlgo" "Gargantext.Core" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "CoreNLP" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "JohnSnowServer" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Spacy" 'PrefixI 'False) (U1 :: Type -> Type)))
type KIND PosTagAlgo # 
Instance details

Defined in Gargantext.Core

fromDBid :: forall a. (HasCallStack, HasDBid a, Typeable a) => Int -> a #

Tries to convert the given integer into the relevant DB identifier, failing with an error if the conversion cannot be performed.