Safe Haskell | None |
---|---|
Language | Haskell2010 |
- 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
FINISHED | Batch is ready for retrieving |
IN_PROGRESS | Batch is being processed |
Eq BatchState | |
Read BatchState | |
Show BatchState | |
ToJSON BatchState | |
FromJSON BatchState |
data BatchStatus
Status of batch
BatchStatus | |
|
Eq BatchStatus | |
Show BatchStatus | |
Generic BatchStatus | |
ToJSON BatchStatus | |
FromJSON BatchStatus | |
type Rep BatchStatus |
data DocumentState
States of document processing
data Category
Entity category
data Entity
Entity | |
|
data AnnotatedDocument
AnnotatedDocument | |
|
Eq AnnotatedDocument | |
Show AnnotatedDocument | |
Generic AnnotatedDocument | |
ToJSON AnnotatedDocument | |
FromJSON AnnotatedDocument | |
type Rep AnnotatedDocument |
data Batch
Batch | |
|
data SearchResult
SearchResult | |
|
Eq SearchResult | |
Show SearchResult | |
Generic SearchResult | |
ToJSON SearchResult | |
FromJSON SearchResult | |
type Rep SearchResult |