textocat-api-0.1.0.0: Unofficial Haskell SDK for Textocat API -- http://textocat.com

Safe HaskellNone
LanguageHaskell2010

Data.Textocat.Internal

Synopsis

Documentation

type ErrorMsg = String

Error message

data Config

API configuration. Currently only API key is saved

Constructors

Config 

Fields

apiKey :: ByteString

API key

hostName :: String

host name

Instances

Eq Config 
Show Config 

data Document

Document sent for analysis

Constructors

Document 

Fields

d_text :: Text

Text (less than 100 KB)

d_tag :: Maybe Text

Tag (say, user identifier of document)

Instances

newtype BatchID

Batch identifier (you get it after submitting documents)

Constructors

BatchID 

Fields

batch_id :: Text
 

Instances

data BatchState

States of batch processing

Constructors

FINISHED

Batch is ready for retrieving

IN_PROGRESS

Batch is being processed

data BatchStatus

Status of batch

Constructors

BatchStatus 

Fields

bs_batchId :: Text

Batch ID

bs_status :: BatchState

Batch status

data DocumentState

States of document processing

data Category

Entity category

data Entity

Constructors

Entity 

Fields

e_span :: Text
 
e_beginOffset :: Int
 
e_endOffset :: Int
 
e_category :: Category
 

Instances

Eq Entity 
Show Entity 
Generic Entity 
ToJSON Entity 
FromJSON Entity 
type Rep Entity 

data Batch

Constructors

Batch 

Instances

Eq Batch 
Show Batch 
Generic Batch 
ToJSON Batch 
FromJSON Batch 
type Rep Batch