2 Module : Gargantext.Pipeline
3 Description : Server API
4 Copyright : (c) CNRS, 2017-Present
5 License : AGPL + CECILL v3
6 Maintainer : team@gargantext.org
7 Stability : experimental
12 {-# OPTIONS_GHC -fno-warn-name-shadowing #-}
14 {-# LANGUAGE NoImplicitPrelude #-}
16 module Gargantext.Pipeline
20 import Data.Text.IO (readFile)
22 import Gargantext.Core
23 import Gargantext.Prelude
25 import Gargantext.Text.Metrics.Occurrences
26 import Gargantext.Text.Terms
27 import Gargantext.Text.Context
32 let contexts = splitBy Sentences 4 text
33 cooc <$> map occurrences <$> mapM (terms Mono FR) contexts
36 -- distributional or conditional