Copyright | (c) CNRS 2017-Present |
---|---|
License | AGPL + CECILL v3 |
Maintainer | team@gargantext.org |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Lang
- withDefaultLanguage :: Maybe Lang -> Lang
- defaultLanguage :: Lang
- toISO639 :: Lang -> ISO639_1
- iso639ToText :: ISO639_1 -> Text
- toISO639Lang :: Lang -> Text
- allLangs :: [Lang]
- class HasDBid a where
- toDBid :: a -> Int
- lookupDBid :: Int -> Maybe a
- langIds :: Bimap Lang Int
- data NLPServerConfig = NLPServerConfig {
- server :: !PosTagAlgo
- url :: !URI
- type Form = Text
- type Lem = Text
- data PosTagAlgo
- fromDBid :: forall a. (HasCallStack, HasDBid a, Typeable a) => Int -> a
Documentation
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
Instances
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
.
iso639ToText :: ISO639_1 -> Text #
Instances
HasDBid Lang # | |
Defined in Gargantext.Core | |
HasDBid PosTagAlgo # | |
Defined in Gargantext.Core toDBid :: PosTagAlgo -> Int # lookupDBid :: Int -> Maybe PosTagAlgo # | |
HasDBid NgramsType # | |
Defined in Gargantext.Database.Schema.Ngrams toDBid :: NgramsType -> Int # lookupDBid :: Int -> Maybe NgramsType # | |
HasDBid ListType # | |
Defined in Gargantext.Core.Types.Main | |
HasDBid NodeType # | |
Defined in Gargantext.Database.Admin.Config |
data NLPServerConfig #
NLPServerConfig | |
|
Instances
Generic NLPServerConfig # | |
Defined in Gargantext.Core type Rep NLPServerConfig :: Type -> Type # from :: NLPServerConfig -> Rep NLPServerConfig x # to :: Rep NLPServerConfig x -> NLPServerConfig # | |
Show NLPServerConfig # | |
Defined in Gargantext.Core showsPrec :: Int -> NLPServerConfig -> ShowS # show :: NLPServerConfig -> String # showList :: [NLPServerConfig] -> ShowS # | |
Eq NLPServerConfig # | |
Defined in Gargantext.Core (==) :: NLPServerConfig -> NLPServerConfig -> Bool # (/=) :: NLPServerConfig -> NLPServerConfig -> Bool # | |
type Rep NLPServerConfig # | |
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))) |
data PosTagAlgo #