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

Gargantext.Core.Text.Corpus.Parsers.CSV

Description

CSV parser for Gargantext corpus files.

Synopsis

Documentation

data CsvGargV3 #

Instances

Instances details
Show CsvGargV3 # 
Instance details

Defined in Gargantext.Core.Text.Corpus.Parsers.CSV

toDoc :: CsvGargV3 -> HyperdataDocument #

Doc 2 HyperdataDocument

toDocs :: Vector CsvDoc -> [CsvGargV3] #

Types Conversions

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

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

type Mean = Double #

data Delimiter #

Constructors

Tab 
Comma 

readCSVFile :: FilePath -> IO (Either Text (Header, Vector CsvDoc)) #

TODO use readFileLazy

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

TODO use readByteStringLazy

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

TODO use readFileLazy

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

TODO use readByteStringLazy