NLP.Lda =============================================================================== This document is auto-generated for Owl's APIs. #10 entries have been extracted. timestamp: 2018-04-16 13:12:55 Github: `{Signature} `_ `{Implementation} `_ Type definition ------------------------------------------------------------------------------- .. code-block:: ocaml type lda_typ = SimpleLDA | FTreeLDA | LightLDA | SparseLDA Type of LDA training algorithms. .. code-block:: ocaml type model Type of LDA model. Core functions ------------------------------------------------------------------------------- .. code-block:: ocaml val init : ?iter:int -> int -> (string, int) Hashtbl.t -> Owl_nlp_corpus.t -> model ``init ~iter k v d`` inits an LDA model for training. The default iteration is 100. Parameters: * ``iter``: number of iterations. * ``k``: number of topics. * ``v``: vocabulary. * ``d``: corpus. .. code-block:: ocaml val train : lda_typ -> model -> unit After calling ``init``, calling this function starts the training. `source code `__ Helper functions ------------------------------------------------------------------------------- .. code-block:: ocaml val show_info : model -> int -> float -> unit Function for printing out log information, tailored for LDA training. `source code `__ .. code-block:: ocaml val include_token : model -> int -> int -> int -> unit Include a token in model, used in training and you are not supposed to use it. `source code `__ .. code-block:: ocaml val exclude_token : model -> int -> int -> int -> unit Exclude a token in model, used in training and you are not supposed to use it. `source code `__