Owl_nlp_ldaNLP: LDA module
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.
After calling ``init``, calling this function starts the training.
val show_info : model -> int -> float -> unitFunction for printing out log information, tailored for LDA training.
val include_token : model -> int -> int -> int -> unitInclude a token in model, used in training and you are not supposed to use it.
val exclude_token : model -> int -> int -> int -> unitExclude a token in model, used in training and you are not supposed to use it.