Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Przemyslaw Kaminski
haskell-gargantext
Commits
6b7a0dc5
Commit
6b7a0dc5
authored
Jun 13, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TEXTFLOW] pipeline and workflow become textflow.
parent
39ab6873
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
10 deletions
+8
-10
package.yaml
package.yaml
+1
-1
Text.hs
src/Gargantext/Text.hs
+0
-3
TextFlow.hs
src/Gargantext/TextFlow.hs
+7
-6
No files found.
package.yaml
View file @
6b7a0dc5
...
...
@@ -24,7 +24,7 @@ library:
# - -Werror
exposed-modules
:
-
Gargantext
-
Gargantext.
Pipeline
-
Gargantext.
TextFlow
-
Gargantext.Prelude
-
Gargantext.Core
-
Gargantext.Core.Types
...
...
src/Gargantext/Text.hs
View file @
6b7a0dc5
...
...
@@ -37,9 +37,6 @@ type Context = Text -> [Text]
data
Viz
=
Graph
|
Phylo
|
Chart
pipeline
::
Config
->
Text
->
Viz
pipeline
=
undefined
-----------------------------------------------------------------
-------------------------------------------------------------------
...
...
src/Gargantext/
Pipeline
.hs
→
src/Gargantext/
TextFlow
.hs
View file @
6b7a0dc5
{-|
Module : Gargantext.
Pipeline
Module : Gargantext.
TextFlow
Description : Server API
Copyright : (c) CNRS, 2017-Present
License : AGPL + CECILL v3
Maintainer : team@gargantext.org
Stability : experimental
Portability : POSIX
From text to viz, all the flow of texts in Gargantext.
-}
{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
{-# LANGUAGE NoImplicitPrelude #-}
module
Gargantext.
Pipeline
module
Gargantext.
TextFlow
where
import
qualified
Data.Text
as
T
...
...
@@ -53,10 +56,10 @@ import Data.Graph.Clustering.Louvain.CplusPlus (cLouvain, LouvainNode(..))
-}
data
WorkType
=
CSV
|
FullText
data
TextFlow
=
CSV
|
FullText
-- workflow :: Lang (EN|FR) -> FilePath -> Graph
work
flow
termsLang
workType
path
=
do
text
flow
termsLang
workType
path
=
do
-- Text <- IO Text <- FilePath
contexts
<-
case
workType
of
FullText
->
splitBy
(
Sentences
5
)
<$>
readFile
path
...
...
@@ -146,5 +149,3 @@ printDebug msg x = putStrLn $ msg <> " " <> show x
--printDebug _ _ = pure ()
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