Copyright | (c) CNRS 2017-Present |
---|---|
License | AGPL + CECILL v3 |
Maintainer | team@gargantext.org |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
- - TODO-ACCESS:
- - check userId CanFillUserCorpus userCorpusId
- - check masterUserId CanFillMasterCorpus masterCorpusId
- - TODO-ACCESS: check uId CanInsertDoc pId && checkDocType nodeType
- - TODO-EVENTS: InsertedNodes
Synopsis
- data DataText
- getDataText :: HasNodeError err => DataOrigin -> TermType Lang -> RawQuery -> Maybe APIKey -> Maybe AuthKey -> Maybe Limit -> DBCmd err (Either GetCorpusError DataText)
- getDataText_Debug :: HasNodeError err => DataOrigin -> TermType Lang -> RawQuery -> Maybe Limit -> DBCmd err ()
- flowDataText :: forall env err m. (DbCmd' env err m, HasNodeStory env err m, MonadLogger m, HasNLPServer env, HasTreeError err, HasValidationError err, MonadJobStatus m) => User -> DataText -> TermType Lang -> CorpusId -> Maybe FlowSocialListWith -> JobHandle m -> m CorpusId
- flow :: forall env err m a c. (DbCmd' env err m, HasNodeStory env err m, MonadLogger m, HasNLPServer env, HasTreeError err, HasValidationError err, FlowCorpus a, MkCorpus c, MonadJobStatus m) => Maybe c -> MkCorpusUser -> TermType Lang -> Maybe FlowSocialListWith -> (Integer, ConduitT () a m ()) -> JobHandle m -> m CorpusId
- flowCorpusFile :: (DbCmd' env err m, HasNodeStory env err m, MonadLogger m, HasNLPServer env, HasTreeError err, HasValidationError err, MonadJobStatus m) => MkCorpusUser -> Limit -> TermType Lang -> FileType -> FileFormat -> FilePath -> Maybe FlowSocialListWith -> JobHandle m -> m CorpusId
- flowCorpus :: (DbCmd' env err m, HasNodeStory env err m, MonadLogger m, HasNLPServer env, HasTreeError err, HasValidationError err, FlowCorpus a, MonadJobStatus m) => MkCorpusUser -> TermType Lang -> Maybe FlowSocialListWith -> (Integer, ConduitT () a m ()) -> JobHandle m -> m CorpusId
- flowCorpusUser :: (HasNodeError err, HasValidationError err, HasNLPServer env, HasTreeError err, HasNodeStory env err m, MkCorpus c) => Lang -> User -> CorpusId -> ListId -> Maybe c -> Maybe FlowSocialListWith -> m CorpusId
- flowAnnuaire :: (DbCmd' env err m, HasNodeStory env err m, MonadLogger m, HasNLPServer env, HasTreeError err, HasValidationError err, MonadJobStatus m) => MkCorpusUser -> TermType Lang -> FilePath -> JobHandle m -> m AnnuaireId
- insertMasterDocs :: (DbCmd' env err m, HasNodeError err, FlowCorpus a, MkCorpus c) => NLPServerConfig -> Maybe c -> TermType Lang -> [a] -> m [DocId]
- saveDocNgramsWith :: DbCmd' env err m => ListId -> HashMap ExtractedNgrams (Map NgramsType (Map NodeId (Int, TermsCount))) -> m ()
- addDocumentsToHyperCorpus :: (DbCmd' env err m, HasNodeError err, FlowCorpus document, MkCorpus corpus) => NLPServerConfig -> Maybe corpus -> TermType Lang -> CorpusId -> [document] -> m [DocId]
- reIndexWith :: HasNodeStory env err m => CorpusId -> ListId -> NgramsType -> Set ListType -> m ()
- getOrMkRoot :: HasNodeError err => User -> DBCmd err (UserId, RootId)
- getOrMkRootWithCorpus :: (HasNodeError err, MkCorpus a) => MkCorpusUser -> Maybe a -> DBCmd err (UserId, RootId, CorpusId)
- data TermType lang
- data DataOrigin
- = InternalOrigin { }
- | ExternalOrigin { }
- allDataOrigins :: [DataOrigin]
- do_api :: Lens' DataOrigin ExternalAPIs
Documentation
getDataText :: HasNodeError err => DataOrigin -> TermType Lang -> RawQuery -> Maybe APIKey -> Maybe AuthKey -> Maybe Limit -> DBCmd err (Either GetCorpusError DataText) #
getDataText_Debug :: HasNodeError err => DataOrigin -> TermType Lang -> RawQuery -> Maybe Limit -> DBCmd err () #
flowDataText :: forall env err m. (DbCmd' env err m, HasNodeStory env err m, MonadLogger m, HasNLPServer env, HasTreeError err, HasValidationError err, MonadJobStatus m) => User -> DataText -> TermType Lang -> CorpusId -> Maybe FlowSocialListWith -> JobHandle m -> m CorpusId #
flow :: forall env err m a c. (DbCmd' env err m, HasNodeStory env err m, MonadLogger m, HasNLPServer env, HasTreeError err, HasValidationError err, FlowCorpus a, MkCorpus c, MonadJobStatus m) => Maybe c -> MkCorpusUser -> TermType Lang -> Maybe FlowSocialListWith -> (Integer, ConduitT () a m ()) -> JobHandle m -> m CorpusId #
flowCorpusFile :: (DbCmd' env err m, HasNodeStory env err m, MonadLogger m, HasNLPServer env, HasTreeError err, HasValidationError err, MonadJobStatus m) => MkCorpusUser -> Limit -> TermType Lang -> FileType -> FileFormat -> FilePath -> Maybe FlowSocialListWith -> JobHandle m -> m CorpusId #
flowCorpus :: (DbCmd' env err m, HasNodeStory env err m, MonadLogger m, HasNLPServer env, HasTreeError err, HasValidationError err, FlowCorpus a, MonadJobStatus m) => MkCorpusUser -> TermType Lang -> Maybe FlowSocialListWith -> (Integer, ConduitT () a m ()) -> JobHandle m -> m CorpusId #
TODO improve the needed type to create/update a corpus (For now, Either is enough)
flowCorpusUser :: (HasNodeError err, HasValidationError err, HasNLPServer env, HasTreeError err, HasNodeStory env err m, MkCorpus c) => Lang -> User -> CorpusId -> ListId -> Maybe c -> Maybe FlowSocialListWith -> m CorpusId #
flowAnnuaire :: (DbCmd' env err m, HasNodeStory env err m, MonadLogger m, HasNLPServer env, HasTreeError err, HasValidationError err, MonadJobStatus m) => MkCorpusUser -> TermType Lang -> FilePath -> JobHandle m -> m AnnuaireId #
insertMasterDocs :: (DbCmd' env err m, HasNodeError err, FlowCorpus a, MkCorpus c) => NLPServerConfig -> Maybe c -> TermType Lang -> [a] -> m [DocId] #
saveDocNgramsWith :: DbCmd' env err m => ListId -> HashMap ExtractedNgrams (Map NgramsType (Map NodeId (Int, TermsCount))) -> m () #
addDocumentsToHyperCorpus :: (DbCmd' env err m, HasNodeError err, FlowCorpus document, MkCorpus corpus) => NLPServerConfig -> Maybe corpus -> TermType Lang -> CorpusId -> [document] -> m [DocId] #
reIndexWith :: HasNodeStory env err m => CorpusId -> ListId -> NgramsType -> Set ListType -> m () #
Re-index documents of a corpus with ngrams in the list
getOrMkRoot :: HasNodeError err => User -> DBCmd err (UserId, RootId) #
getOrMkRootWithCorpus :: (HasNodeError err, MkCorpus a) => MkCorpusUser -> Maybe a -> DBCmd err (UserId, RootId, CorpusId) #
Mono | |
| |
Multi | |
| |
MonoMulti | |
| |
Unsupervised | |
|
Instances
data DataOrigin #
Instances
allDataOrigins :: [DataOrigin] #