Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data.Textocat.Internal
- type ErrorMsg = String
- data Config = Config {}
- data Document = Document {}
- documentOptions :: Options
- newtype BatchID = BatchID {
- batch_id :: Text
- data BatchState
- data BatchStatus = BatchStatus {
- bs_batchId :: Text
- bs_status :: BatchState
- bsOptions :: Options
- data DocumentState
- data Category
- data Entity = Entity {
- e_span :: Text
- e_beginOffset :: Int
- e_endOffset :: Int
- e_category :: Category
- entityOptions :: Options
- data AnnotatedDocument = AnnotatedDocument {
- ad_status :: DocumentState
- ad_tag :: Maybe Text
- ad_entities :: [Entity]
- adOptions :: Options
- data Batch = Batch {
- b_batchIds :: [BatchID]
- b_documents :: [AnnotatedDocument]
- batchOptions :: Options
- data SearchResult = SearchResult {
- sr_searchQuery :: Text
- sr_documents :: [AnnotatedDocument]
- srOptions :: Options
- data ServiceStatus
Documentation
type ErrorMsg = String
Error message
data Config
API configuration. Currently only API key is saved
newtype BatchID
Batch identifier (you get it after submitting documents)
data BatchState
States of batch processing
Constructors
FINISHED | Batch is ready for retrieving |
IN_PROGRESS | Batch is being processed |
Instances
Eq BatchState | |
Read BatchState | |
Show BatchState | |
ToJSON BatchState | |
FromJSON BatchState |
data BatchStatus
Status of batch
Constructors
BatchStatus | |
Fields
|
Instances
Eq BatchStatus | |
Show BatchStatus | |
Generic BatchStatus | |
ToJSON BatchStatus | |
FromJSON BatchStatus | |
type Rep BatchStatus |
data DocumentState
States of document processing
Constructors
SUCCESS | |
INPUT_ERROR | |
SERVICE_ERROR |
Instances
data Category
Entity category
data Entity
Constructors
Entity | |
Fields
|
data AnnotatedDocument
Constructors
AnnotatedDocument | |
Fields
|
Instances
Eq AnnotatedDocument | |
Show AnnotatedDocument | |
Generic AnnotatedDocument | |
ToJSON AnnotatedDocument | |
FromJSON AnnotatedDocument | |
type Rep AnnotatedDocument |
data Batch
Constructors
Batch | |
Fields
|
data SearchResult
Constructors
SearchResult | |
Fields
|
Instances
Eq SearchResult | |
Show SearchResult | |
Generic SearchResult | |
ToJSON SearchResult | |
FromJSON SearchResult | |
type Rep SearchResult |
data ServiceStatus
Constructors
ServiceOK | |
ServiceUnavailable |
Instances
Eq ServiceStatus | |
Show ServiceStatus |