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
144
Issues
144
List
Board
Labels
Milestones
Merge Requests
9
Merge Requests
9
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
bd8b6659
Commit
bd8b6659
authored
Aug 29, 2024
by
Alexandre Delanoë
1
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/issue-380' into dev
parents
c624d176
5f74a8a5
Changes
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 @
bd8b6659
...
...
@@ -591,9 +591,9 @@ parseTsv' bs = (V.toList . V.map tsv2doc . snd) <$> readTsvLazyBS Comma bs
parseTsv'
::
BL
.
ByteString
->
Either
Text
[
HyperdataDocument
]
parseTsv'
bs
=
do
let
result
=
case
readTsvLazyBS
Comma
bs
of
Left
_err
->
readTsvLazyBS
Tab
bs
Right
res
->
Right
re
s
result
=
case
(
testCorrectFile
bs
)
of
Left
_err
->
Left
_err
Right
del
->
readTsvLazyBS
del
b
s
V
.
toList
.
V
.
map
tsv2doc
.
snd
<$>
result
parseTsvC
::
BL
.
ByteString
...
...
@@ -601,9 +601,9 @@ parseTsvC :: BL.ByteString
parseTsvC
bs
=
(
\
(
_h
,
rs
)
->
(
fromIntegral
$
V
.
length
rs
,
yieldMany
rs
.|
mapC
tsv2doc
))
<$>
eResult
where
eResult
=
case
readTsvLazyBS
Comma
bs
of
Left
_err
->
readTsvLazyBS
Tab
bs
Right
res
->
Right
re
s
eResult
=
case
(
testCorrectFile
bs
)
of
Left
_err
->
Left
_err
Right
del
->
readTsvLazyBS
del
b
s
------------------------------------------------------------------------
-- 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