Commit 04475b97 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] test WIP

parent c63c7cae
...@@ -13,6 +13,7 @@ Portability : POSIX ...@@ -13,6 +13,7 @@ Portability : POSIX
module Core.Text where module Core.Text where
{-
import Gargantext.API.Ngrams.Types (NgramsTerm(..)) import Gargantext.API.Ngrams.Types (NgramsTerm(..))
import Gargantext.Core.Viz.Graph (Graph(..)) import Gargantext.Core.Viz.Graph (Graph(..))
import Gargantext.Prelude import Gargantext.Prelude
...@@ -58,3 +59,5 @@ termTests = "It is hard to detect important articles in a specific context. Info ...@@ -58,3 +59,5 @@ termTests = "It is hard to detect important articles in a specific context. Info
-- TODO -- TODO
-- group ngrams -- group ngrams
--ocs = occ $ ws --ocs = occ $ ws
--
-}
...@@ -26,6 +26,7 @@ This document defines basic of Text definitions according to Gargantext.. ...@@ -26,6 +26,7 @@ This document defines basic of Text definitions according to Gargantext..
module Core.Text.Examples module Core.Text.Examples
where where
{-
import Data.Array.Accelerate (toList, Matrix) import Data.Array.Accelerate (toList, Matrix)
import Data.Map (Map) import Data.Map (Map)
import Data.Ord (Down(..)) import Data.Ord (Down(..))
...@@ -129,4 +130,4 @@ incExcSpeGen_sorted m = both ordonne (incExcSpeGen $ cooc2mat Triangle ti m) ...@@ -129,4 +130,4 @@ incExcSpeGen_sorted m = both ordonne (incExcSpeGen $ cooc2mat Triangle ti m)
ordonne x = sortWith (Down . snd) ordonne x = sortWith (Down . snd)
$ zip (map snd $ Map.toList fi) (toList x) $ zip (map snd $ Map.toList fi) (toList x)
-}
...@@ -15,12 +15,14 @@ From text to viz, all the flow of texts in Gargantext. ...@@ -15,12 +15,14 @@ From text to viz, all the flow of texts in Gargantext.
module Core.Text.Flow module Core.Text.Flow
where where
{-
import qualified Data.Text as T import qualified Data.Text as T
--import Data.Text.IO (readFile) --import Data.Text.IO (readFile)
import Database.PostgreSQL.Simple (Connection) import Database.PostgreSQL.Simple (Connection)
import GHC.IO (FilePath) import GHC.IO (FilePath)
--import Gargantext.Core (Lang) --import Gargantext.Core (Lang)
import Gargantext.Core.Types (CorpusId) import Gargantext.Core.Types (CorpusId)
-}
{- {-
____ _____ _ ____ _____ _
...@@ -32,6 +34,7 @@ import Gargantext.Core.Types (CorpusId) ...@@ -32,6 +34,7 @@ import Gargantext.Core.Types (CorpusId)
-} -}
{-
contextText :: [T.Text] contextText :: [T.Text]
contextText = ["The dog is an animal." contextText = ["The dog is an animal."
,"The bird is an animal." ,"The bird is an animal."
...@@ -53,6 +56,7 @@ data TextFlow = CSV FilePath ...@@ -53,6 +56,7 @@ data TextFlow = CSV FilePath
| DBV3 Connection CorpusId | DBV3 Connection CorpusId
| Query T.Text | Query T.Text
-}
{- {-
textFlow :: TermType Lang -> TextFlow -> IO Graph textFlow :: TermType Lang -> TextFlow -> IO Graph
textFlow termType workType = do textFlow termType workType = do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment