Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
153
Issues
153
List
Board
Labels
Milestones
Merge Requests
12
Merge Requests
12
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
04475b97
Commit
04475b97
authored
Jun 01, 2021
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] test WIP
parent
c63c7cae
Pipeline
#1507
canceled with stage
in 0 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
Text.hs
src-test/Core/Text.hs
+3
-0
Examples.hs
src-test/Core/Text/Examples.hs
+2
-1
Flow.hs
src-test/Core/Text/Flow.hs
+4
-0
No files found.
src-test/Core/Text.hs
View file @
04475b97
...
...
@@ -13,6 +13,7 @@ Portability : POSIX
module
Core.Text
where
{-
import Gargantext.API.Ngrams.Types (NgramsTerm(..))
import Gargantext.Core.Viz.Graph (Graph(..))
import Gargantext.Prelude
...
...
@@ -58,3 +59,5 @@ termTests = "It is hard to detect important articles in a specific context. Info
-- TODO
-- group ngrams
--ocs = occ $ ws
--
-}
src-test/Core/Text/Examples.hs
View file @
04475b97
...
...
@@ -26,6 +26,7 @@ This document defines basic of Text definitions according to Gargantext..
module
Core.Text.Examples
where
{-
import Data.Array.Accelerate (toList, Matrix)
import Data.Map (Map)
import Data.Ord (Down(..))
...
...
@@ -129,4 +130,4 @@ incExcSpeGen_sorted m = both ordonne (incExcSpeGen $ cooc2mat Triangle ti m)
ordonne x = sortWith (Down . snd)
$ zip (map snd $ Map.toList fi) (toList x)
-}
src-test/Core/Text/Flow.hs
View file @
04475b97
...
...
@@ -15,12 +15,14 @@ From text to viz, all the flow of texts in Gargantext.
module
Core.Text.Flow
where
{-
import qualified Data.Text as T
--import Data.Text.IO (readFile)
import Database.PostgreSQL.Simple (Connection)
import GHC.IO (FilePath)
--import Gargantext.Core (Lang)
import Gargantext.Core.Types (CorpusId)
-}
{-
____ _____ _
...
...
@@ -32,6 +34,7 @@ import Gargantext.Core.Types (CorpusId)
-}
{-
contextText :: [T.Text]
contextText = ["The dog is an animal."
,"The bird is an animal."
...
...
@@ -53,6 +56,7 @@ data TextFlow = CSV FilePath
| DBV3 Connection CorpusId
| Query T.Text
-}
{-
textFlow :: TermType Lang -> TextFlow -> IO Graph
textFlow termType workType = do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment