Copyright | (c) CNRS 2018 |
---|---|
License | AGPL + CECILL v3 |
Maintainer | team@gargantext.org |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Text gathers terms in unit of contexts.
Synopsis
- class HasText h where
- newtype Texte = Texte Text
- newtype Paragraphe = Paragraphe Text
- newtype Phrase = Phrase Text
- newtype MultiTerme = MultiTerme Text
- newtype Mot = Mot Text
- newtype Lettre = Lettre Text
- type Titre = Phrase
- class Collage sup inf where
- sentences :: Text -> [Text]
- sentences' :: Text -> [Text]
- isCharStop :: Char -> Bool
- unsentences :: [Text] -> Text
- size :: Text -> Int
Documentation
Instances
HasText HyperdataContact # | |
Defined in Gargantext.Database.Admin.Types.Hyperdata.Contact hasText :: HyperdataContact -> [Text] # | |
HasText HyperdataDocument # | |
Defined in Gargantext.Database.Admin.Types.Hyperdata.Document hasText :: HyperdataDocument -> [Text] # | |
HasText a => HasText (Node a) # | |
Defined in Gargantext.Database.Action.Flow.Extract |
newtype Paragraphe #
Instances
Show Paragraphe # | |
Defined in Gargantext.Core.Text showsPrec :: Int -> Paragraphe -> ShowS # show :: Paragraphe -> String # showList :: [Paragraphe] -> ShowS # | |
Collage Paragraphe Phrase # | |
Defined in Gargantext.Core.Text dec :: Paragraphe -> [Phrase] # inc :: [Phrase] -> Paragraphe # | |
Collage Texte Paragraphe # | |
Defined in Gargantext.Core.Text dec :: Texte -> [Paragraphe] # inc :: [Paragraphe] -> Texte # |
Instances
Show Phrase # | |
Collage Paragraphe Phrase # | |
Defined in Gargantext.Core.Text dec :: Paragraphe -> [Phrase] # inc :: [Phrase] -> Paragraphe # | |
Collage Phrase MultiTerme # | |
Defined in Gargantext.Core.Text dec :: Phrase -> [MultiTerme] # inc :: [MultiTerme] -> Phrase # |
newtype MultiTerme #
Instances
Show MultiTerme # | |
Defined in Gargantext.Core.Text showsPrec :: Int -> MultiTerme -> ShowS # show :: MultiTerme -> String # showList :: [MultiTerme] -> ShowS # | |
Collage MultiTerme Mot # | |
Defined in Gargantext.Core.Text dec :: MultiTerme -> [Mot] # inc :: [Mot] -> MultiTerme # | |
Collage Phrase MultiTerme # | |
Defined in Gargantext.Core.Text dec :: Phrase -> [MultiTerme] # inc :: [MultiTerme] -> Phrase # |
Instances
Collage MultiTerme Mot # | |
Defined in Gargantext.Core.Text dec :: MultiTerme -> [Mot] # inc :: [Mot] -> MultiTerme # | |
Collage Paragraphe Phrase # | |
Defined in Gargantext.Core.Text dec :: Paragraphe -> [Phrase] # inc :: [Phrase] -> Paragraphe # | |
Collage Phrase MultiTerme # | |
Defined in Gargantext.Core.Text dec :: Phrase -> [MultiTerme] # inc :: [MultiTerme] -> Phrase # | |
Collage Texte Paragraphe # | |
Defined in Gargantext.Core.Text dec :: Texte -> [Paragraphe] # inc :: [Paragraphe] -> Texte # |
sentences' :: Text -> [Text] #
isCharStop :: Char -> Bool #
unsentences :: [Text] -> Text #