gargantext-0.0.7.1.5.3: Search, map, share
Copyright(c) CNRS 2017
LicenseAGPL + CECILL v3
Maintainerteam@gargantext.org
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
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 #

Constructors

Plain 
ZIP 

Instances

Instances details
Arbitrary FileFormat # 
Instance details

Defined in Gargantext.API.Node.Corpus.New.Types

FromJSON FileFormat # 
Instance details

Defined in Gargantext.API.Node.Corpus.New.Types

ToJSON FileFormat # 
Instance details

Defined in Gargantext.API.Node.Corpus.New.Types

Generic FileFormat # 
Instance details

Defined in Gargantext.API.Node.Corpus.New.Types

Associated Types

type Rep FileFormat :: Type -> Type #

Show FileFormat # 
Instance details

Defined in Gargantext.API.Node.Corpus.New.Types

Eq FileFormat # 
Instance details

Defined in Gargantext.API.Node.Corpus.New.Types

FromHttpApiData FileFormat # 
Instance details

Defined in Gargantext.API.Node.Corpus.New.Types

ToHttpApiData FileFormat # 
Instance details

Defined in Gargantext.API.Node.Corpus.New.Types

ToParamSchema FileFormat # 
Instance details

Defined in Gargantext.API.Node.Corpus.New.Types

ToSchema FileFormat # 
Instance details

Defined in Gargantext.API.Node.Corpus.New.Types

type Rep FileFormat # 
Instance details

Defined in Gargantext.API.Node.Corpus.New.Types

type Rep FileFormat = D1 ('MetaData "FileFormat" "Gargantext.API.Node.Corpus.New.Types" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "Plain" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ZIP" 'PrefixI 'False) (U1 :: Type -> Type))

data FileType #

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

Instances

Instances details
Show FileType # 
Instance details

Defined in Gargantext.Core.Text.Corpus.Parsers

Eq FileType # 
Instance details

Defined in Gargantext.Core.Text.Corpus.Parsers

parseFile :: FileType -> FileFormat -> FilePath -> IO (Either Text [HyperdataDocument]) #

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