OIx      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwNone0Entity categoryStates of document processing"Status of batch$Batch ID% Batch status&States of batch processing'Batch is being processed(Batch is ready for retrieving)8Batch identifier (you get it after submitting documents),Document sent for analysis.Text (less than 100 KB)/&Tag (say, user identifier of document)02API configuration. Currently only API key is saved2API key3 host name4 Error messageO  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMN;  !"#$%&'()*+,-./0123456789:O40123,-./5NM)*+LK&('JI"#$%6HG! FEDC7BA 8@? 9>=:<;'  ! "#$%&(')*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNNoneO8Make call to API endpoint, send parameter and get answerP;Check service status. We cannot do it usual way by calling OO API config URL endpoint HTTP methodparameter name; "body" means send in request bodyparameter valuesPConfigOPOPOPTypes used in Textocat API (c) Mansur Ziatdinov, 2014--2015 Apache-2.0mz+textocat-api@fosslabs.ru experimentalPOSIXNoneQ Creates a Config value from API keyRGet batch identifier BatchID from status returned by APIS Create a Document without tag from textTCreate a tagged Document from text and tagUReplace or set a tagV Delete tagW)Get batch status from request call resultX'Get batch ids from retrieve call resultY1Get annotated documents from retrieve call resultZGet annotated document state[Get annotated document tag\$Get entities from annotated document]Get entity span^!Get pair of start and end offsets_Get entity category`Get search queryaGet found documentsQAPI keyRStatus as returned by APISTextTTextTagUTag DocumentVWRequest call resultXBatchYBatchZDocument[Document\Document]Entity^Entity_Entity`Search call resultaSearch call result,  !"&'(),04QRSTUVWXYZ[\]^_`a,0Q4,STUV)&('"RWXY Z[\! ]^_`aQRSTUVWXYZ[\]^_`aSimple binding for Textocat API (c) Mansur Ziatdinov, 2014--2015 Apache-2.0mz+textocat-api@fosslabs.ru experimentalPOSIXNonexConvert ) to ByteStringbQueue documentscRequest status of batchd(Retrieve documents from finished batchese*Search text in all documents in collectionf6Blocks until batch is finished. Repeats every 0.1 sec.gFQueue documents and wait until they are finished. Returns all entitieshCheck status of servicexBatchIDb0)List of documents, should be less than 50c ConfigBatch ID to requestd ConfigBatches to retrievee Config Search queryfConfigBatchgConfig DocumentshConfigbcdefghbcdehfgxbcdefghNonebcdefgh Monadic binding for Textocat API (c) Mansur Ziatdinov, 2014--2015 Apache-2.0mz+textocat-api@fosslabs.ru experimentalPOSIXNone-jFTextocatM is a monad transformer to use Textocat API over some monad m and return result ak-Executes TextocatM actions with given API keyl,Executes Textocat actions with given API keyyRun function that depends on 0 in TextocatM monad, reading 0 from Readerm7Queues given documents. No requests go to server until p, v of w is calledn7Queues single document. No requests go to server until p, v of w is calledo*Queues documents. Actually, makes call to b2 with collections divided by 50 documents at mostp,Actually sends documents that were added by m and n calls to the API server. If there are more than 50 documents, they will be sent in several calls, each call will have 50 document at most (API limitation)qRequests batch statusrRetrieves batchessSearch all collectionst(Waits while batch processing is finisheduCheck service statusv)Request all documents that were added by m and nH calls. Can create several batches, if there are more than 50 documentsw*Retrieve all documents that were added by m and n} calls. Can create several batches, if there are more than 50 documents. Blocks until processing of all batches is finishedijz{|kAPI keyTextocatM actionlAPI keyTextocat actiony2Function that depends on Config and something elseSomething elsemDocuments to queuenDocument to queueopqBatchrBatchess Search querytuvw}~ijklmnopqrstuvwjkiloqrsutmnpvwijz{|klymnopqrstuvw}~        !"#$%%&'()*++,--./00123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxiyz{|}~textocat-api-0.1.0.0Data.Textocat.InternalNetwork.Textocat.Internal Data.TextocatNetwork.Textocat.SimpleNetwork.Textocat.MonadicNetwork.Textocat ServiceStatusServiceUnavailable ServiceOK SearchResultsr_searchQuery sr_documentsBatch b_batchIds b_documentsAnnotatedDocument ad_statusad_tag ad_entitiesEntitye_span e_beginOffset e_endOffset e_categoryCategoryMONEYTIMEFACILITYLOCATIONGPE ORGANIZATIONPERSON DocumentState SERVICE_ERROR INPUT_ERRORSUCCESS BatchStatus bs_batchId bs_status BatchState IN_PROGRESSFINISHEDBatchIDbatch_idDocumentd_textd_tagConfigapiKeyhostNameErrorMsgdocumentOptions bsOptions entityOptions adOptions batchOptions srOptions$fToJSONSearchResult$fFromJSONSearchResult $fToJSONBatch$fFromJSONBatch$fToJSONAnnotatedDocument$fFromJSONAnnotatedDocument$fToJSONEntity$fFromJSONEntity$fToJSONCategory$fFromJSONCategory$fToJSONDocumentState$fFromJSONDocumentState$fToJSONBatchStatus$fFromJSONBatchStatus$fToJSONBatchState$fFromJSONBatchState$fToJSONBatchID$fFromJSONBatchID$fToJSONDocument$fFromJSONDocumentmakeConncheckServiceStatusmkConfig getBatchID mkDocumentmkTaggedDocumentsetTagdelTag getBatchState getBatchIds getDocumentsgetDocumentStategetDocumentTag getEntitiesgetSpan getOffsets getCategorygetSearchQuerygetFoundDocuments entityQueue entityRequestentityRetrieve entitySearchwaitForFinished queueRetrieve serviceStatusTextocat TextocatM runTextocatM runTextocatqueuequeue1queue'forcerequest' retrieve'search'wait'statusrequestretrieve fromBatchId withConfig unTextocatM initialSt$fMonadIOTextocatM$fMonadTransTextocatM$fMonadTextocatM$fApplicativeTextocatM