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
195
Issues
195
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
5f74a8a5
Commit
5f74a8a5
authored
Aug 29, 2024
by
Loïc Chapron
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tsv error import
parent
9144bad9
Pipeline
#6554
passed with stages
in 59 minutes and 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
TSV.hs
src/Gargantext/Core/Text/Corpus/Parsers/TSV.hs
+6
-6
No files found.
src/Gargantext/Core/Text/Corpus/Parsers/TSV.hs
View file @
5f74a8a5
...
@@ -588,9 +588,9 @@ parseTsv' bs = (V.toList . V.map tsv2doc . snd) <$> readTsvLazyBS Comma bs
...
@@ -588,9 +588,9 @@ parseTsv' bs = (V.toList . V.map tsv2doc . snd) <$> readTsvLazyBS Comma bs
parseTsv'
::
BL
.
ByteString
->
Either
Text
[
HyperdataDocument
]
parseTsv'
::
BL
.
ByteString
->
Either
Text
[
HyperdataDocument
]
parseTsv'
bs
=
do
parseTsv'
bs
=
do
let
let
result
=
case
readTsvLazyBS
Comma
bs
of
result
=
case
(
testCorrectFile
bs
)
of
Left
_err
->
readTsvLazyBS
Tab
bs
Left
_err
->
Left
_err
Right
res
->
Right
re
s
Right
del
->
readTsvLazyBS
del
b
s
V
.
toList
.
V
.
map
tsv2doc
.
snd
<$>
result
V
.
toList
.
V
.
map
tsv2doc
.
snd
<$>
result
parseTsvC
::
BL
.
ByteString
parseTsvC
::
BL
.
ByteString
...
@@ -598,9 +598,9 @@ parseTsvC :: BL.ByteString
...
@@ -598,9 +598,9 @@ parseTsvC :: BL.ByteString
parseTsvC
bs
=
parseTsvC
bs
=
(
\
(
_h
,
rs
)
->
(
fromIntegral
$
V
.
length
rs
,
yieldMany
rs
.|
mapC
tsv2doc
))
<$>
eResult
(
\
(
_h
,
rs
)
->
(
fromIntegral
$
V
.
length
rs
,
yieldMany
rs
.|
mapC
tsv2doc
))
<$>
eResult
where
where
eResult
=
case
readTsvLazyBS
Comma
bs
of
eResult
=
case
(
testCorrectFile
bs
)
of
Left
_err
->
readTsvLazyBS
Tab
bs
Left
_err
->
Left
_err
Right
res
->
Right
re
s
Right
del
->
readTsvLazyBS
del
b
s
------------------------------------------------------------------------
------------------------------------------------------------------------
-- Tsv v3 weighted for phylo
-- Tsv v3 weighted for phylo
...
...
Przemyslaw Kaminski
@cgenie
mentioned in commit
5660aec0
·
Oct 08, 2024
mentioned in commit
5660aec0
mentioned in commit 5660aec07ec5a0a0a5468f440092c1a8f57a864e
Toggle commit list
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