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
141
Issues
141
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
0ed6cf38
Commit
0ed6cf38
authored
Nov 16, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[REORG:LIST] Formats.CSV
parent
28d6dd79
Pipeline
#1214
failed with stage
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
15 deletions
+10
-15
Main.hs
bin/gargantext-adaptative-phylo/Main.hs
+1
-1
Main.hs
bin/gargantext-cli/Main.hs
+1
-1
Main.hs
bin/gargantext-phylo/Main.hs
+1
-1
CSV.hs
src/Gargantext/Core/Text/List/Formats/CSV.hs
+7
-12
No files found.
bin/gargantext-adaptative-phylo/Main.hs
View file @
0ed6cf38
...
@@ -28,7 +28,7 @@ import Gargantext.Database.Admin.Types.Hyperdata (HyperdataDocument(..))
...
@@ -28,7 +28,7 @@ import Gargantext.Database.Admin.Types.Hyperdata (HyperdataDocument(..))
import
Gargantext.Core.Text.Context
(
TermList
)
import
Gargantext.Core.Text.Context
(
TermList
)
import
Gargantext.Core.Text.Corpus.Parsers.CSV
(
csv_title
,
csv_abstract
,
csv_publication_year
)
import
Gargantext.Core.Text.Corpus.Parsers.CSV
(
csv_title
,
csv_abstract
,
csv_publication_year
)
import
Gargantext.Core.Text.Corpus.Parsers
(
FileFormat
(
..
),
parseFile
)
import
Gargantext.Core.Text.Corpus.Parsers
(
FileFormat
(
..
),
parseFile
)
import
Gargantext.Core.Text.List.CSV
(
csvMapTermList
)
import
Gargantext.Core.Text.List.
Formats.
CSV
(
csvMapTermList
)
import
Gargantext.Core.Text.Terms.WithList
(
Patterns
,
buildPatterns
,
extractTermsWithList
)
import
Gargantext.Core.Text.Terms.WithList
(
Patterns
,
buildPatterns
,
extractTermsWithList
)
import
Gargantext.Core.Viz.AdaptativePhylo
import
Gargantext.Core.Viz.AdaptativePhylo
import
Gargantext.Core.Viz.Phylo.PhyloMaker
(
toPhylo
)
import
Gargantext.Core.Viz.Phylo.PhyloMaker
(
toPhylo
)
...
...
bin/gargantext-cli/Main.hs
View file @
0ed6cf38
...
@@ -53,7 +53,7 @@ import Gargantext.Core.Text.Terms
...
@@ -53,7 +53,7 @@ import Gargantext.Core.Text.Terms
import
Gargantext.Core.Text.Context
import
Gargantext.Core.Text.Context
import
Gargantext.Core.Text.Terms.WithList
import
Gargantext.Core.Text.Terms.WithList
import
Gargantext.Core.Text.Corpus.Parsers.CSV
(
readFile
,
csv_title
,
csv_abstract
,
csv_publication_year
)
import
Gargantext.Core.Text.Corpus.Parsers.CSV
(
readFile
,
csv_title
,
csv_abstract
,
csv_publication_year
)
import
Gargantext.Core.Text.List.CSV
(
csvMapTermList
)
import
Gargantext.Core.Text.List.
Formats.
CSV
(
csvMapTermList
)
import
Gargantext.Core.Text.Terms
(
terms
)
import
Gargantext.Core.Text.Terms
(
terms
)
import
Gargantext.Core.Text.Metrics.Count
(
coocOnContexts
,
Coocs
)
import
Gargantext.Core.Text.Metrics.Count
(
coocOnContexts
,
Coocs
)
...
...
bin/gargantext-phylo/Main.hs
View file @
0ed6cf38
...
@@ -31,7 +31,7 @@ import Gargantext.Prelude
...
@@ -31,7 +31,7 @@ import Gargantext.Prelude
import
Gargantext.Core.Text.Context
(
TermList
)
import
Gargantext.Core.Text.Context
(
TermList
)
import
Gargantext.Core.Text.Corpus.Parsers
(
FileFormat
(
..
),
parseFile
)
import
Gargantext.Core.Text.Corpus.Parsers
(
FileFormat
(
..
),
parseFile
)
import
Gargantext.Core.Text.Corpus.Parsers.CSV
(
csv_title
,
csv_abstract
,
csv_publication_year
)
import
Gargantext.Core.Text.Corpus.Parsers.CSV
(
csv_title
,
csv_abstract
,
csv_publication_year
)
import
Gargantext.Core.Text.List.CSV
(
csvMapTermList
)
import
Gargantext.Core.Text.List.
Formats.
CSV
(
csvMapTermList
)
import
Gargantext.Core.Text.Terms.WithList
import
Gargantext.Core.Text.Terms.WithList
import
Gargantext.Core.Viz.Phylo
import
Gargantext.Core.Viz.Phylo
import
Gargantext.Core.Viz.Phylo.LevelMaker
import
Gargantext.Core.Viz.Phylo.LevelMaker
...
...
src/Gargantext/Core/Text/List/CSV.hs
→
src/Gargantext/Core/Text/List/
Formats/
CSV.hs
View file @
0ed6cf38
{-|
{-|
Module : Gargantext.Core.Text.List.CSV
Module : Gargantext.Core.Text.List.
Formats.
CSV
Description :
Description :
Copyright : (c) CNRS, 2018-Present
Copyright : (c) CNRS, 2018-Present
License : AGPL + CECILL v3
License : AGPL + CECILL v3
...
@@ -12,29 +12,24 @@ CSV parser for Gargantext corpus files.
...
@@ -12,29 +12,24 @@ CSV parser for Gargantext corpus files.
-}
-}
module
Gargantext.Core.Text.List.CSV
where
module
Gargantext.Core.Text.List.Formats.CSV
where
import
GHC.IO
(
FilePath
)
import
Control.Applicative
import
Control.Applicative
import
Control.Monad
(
mzero
)
import
Control.Monad
(
mzero
)
import
Data.Char
(
ord
)
import
Data.Char
(
ord
)
import
Data.Csv
import
Data.Csv
import
Data.Either
(
Either
(
Left
,
Right
))
import
Data.Either
(
Either
(
Left
,
Right
))
import
Data.List
(
null
)
import
Data.List
(
null
)
import
Data.Text
(
Text
,
pack
)
import
Data.Text
(
Text
,
pack
)
import
qualified
Data.Text
as
DT
import
qualified
Data.ByteString.Lazy
as
BL
import
Data.Vector
(
Vector
)
import
Data.Vector
(
Vector
)
import
qualified
Data.Vector
as
V
import
GHC.IO
(
FilePath
)
import
Gargantext.Prelude
hiding
(
length
)
import
Gargantext.Core.Text.Context
import
Gargantext.Core.Text.Context
import
Gargantext.Prelude
hiding
(
length
)
import
qualified
Data.ByteString.Lazy
as
BL
import
qualified
Data.Text
as
DT
import
qualified
Data.Vector
as
V
------------------------------------------------------------------------
------------------------------------------------------------------------
csvMapTermList
::
FilePath
->
IO
TermList
csvMapTermList
::
FilePath
->
IO
TermList
csvMapTermList
fp
=
csv2list
CsvMap
<$>
snd
<$>
fromCsvListFile
fp
csvMapTermList
fp
=
csv2list
CsvMap
<$>
snd
<$>
fromCsvListFile
fp
...
...
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