gargantext-0.0.4.9.5: Search, map, share
Copyright(c) CNRS 2017-Present
LicenseAGPL + CECILL v3
Maintainerteam@gargantext.org
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Gargantext.Core.Text.Corpus.Parsers.CSV

Description

CSV parser for Gargantext corpus files.

Synopsis

Documentation

toDoc :: CsvGargV3 -> HyperdataDocument Source #

Doc 2 HyperdataDocument

toDocs :: Vector CsvDoc -> [CsvGargV3] Source #

Types Conversions

splitDoc :: Mean -> SplitContext -> CsvDoc -> Vector CsvDoc Source #

Split a document in its context TODO adapt the size of the paragraph according to the corpus average

data Delimiter Source #

Constructors

Tab 
Comma 

readFile :: FilePath -> IO (Either String (Header, Vector CsvDoc)) Source #

TODO use readFileLazy

readCsvLazyBS :: Delimiter -> ByteString -> Either String (Header, Vector CsvDoc) Source #

TODO use readByteStringLazy

readCsvHal :: FilePath -> IO (Either String (Header, Vector CsvHal)) Source #

TODO use readFileLazy

readCsvHalLazyBS :: ByteString -> Either String (Header, Vector CsvHal) Source #

TODO use readByteStringLazy