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

Gargantext.Core.Text.Corpus.Parsers

Description

Gargantext enables analyzing semi-structured text that should be parsed in order to be analyzed.

The parsers suppose we know the format of the Text (TextFormat data type) according to which the right parser is chosen among the list of available parsers.

This module mainly describe how to add a new parser to Gargantext, please follow the types.

Synopsis

Documentation

data FileFormat Source #

According to the format of Input file, different parser are available.

Constructors

WOS 
RIS 
RisPresse 
CsvGargV3 
CsvHal 
ZIP 

Instances

Instances details
Show FileFormat Source # 
Instance details

Defined in Gargantext.Core.Text.Corpus.Parsers

parseFile :: FileFormat -> FilePath -> IO (Either String [HyperdataDocument]) Source #

Parse file into documents TODO manage errors here TODO: to debug maybe add the filepath in error message