| Copyright | (c) CNRS 2017-Present |
|---|---|
| License | AGPL + CECILL v3 |
| Maintainer | team@gargantext.org |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Gargantext.Core.Text.Context
Description
Context of text management tool, here are logic of main types:
- Term
- Multi-term
- Label
- Sentence
- Corpus
How to split contexts is describes in this module.
Documentation
data SplitContext #
Contexts definition to build/unbuild contexts.
splitBy :: SplitContext -> Text -> [Text] #
splitBy contexts of Chars or Sentences or Paragraphs
To see some examples at a higher level (sentences and paragraph), see
ex_terms
>>>splitBy (Chars 0) (pack "abcde")["a","b","c","d","e"]
>>>splitBy (Chars 1) (pack "abcde")["ab","bc","cd","de"]
>>>splitBy (Chars 2) (pack "abcde")["abc","bcd","cde"]