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.Terms.WithList

Description

Here is a longer description of this module, containing some commentary with some markup.

Synopsis

Documentation

data Pattern #

Constructors

Pattern 

Fields

type Patterns = [Pattern] #

data ReplaceTerms #

Constructors

KeepAll 
LongestOnly 

manipulateText :: Lang -> Text -> Text #

Manipulates the input Text before passing it to termsInText. In particular, if the language is Chinese (ZH), we add spaces.

extractTermsWithList' :: Patterns -> Text -> [Text] #

Extract terms >>> let termList = [(["chat blanc"], [["chat","blanc"]])] :: TermList extractTermsWithList' (buildPatterns termList) "Le chat blanc"["chat blanc"] ["chat blanc"]