package omg

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type generator = {
  1. forward_cache : (string * string, (string, int) Hashtbl.t) Hashtbl.t;
  2. backward_cache : (string * string, (string, int) Hashtbl.t) Hashtbl.t;
  3. words : (int, string) Hashtbl.t;
  4. last_two_words : (string * string) ref;
}
val add_word : generator -> string -> unit
val get_last_two_words : generator -> string list
val init : unit -> generator
val triples : 'a list -> ('a * 'a * 'a) list
val add_key : ('a, ('b, int) Hashtbl.t) Hashtbl.t -> 'a -> 'b -> unit
val feed : generator -> string -> unit
val select_seed : generator -> string option -> bool -> string * string
val generate_markov_text : generator -> int -> (string option * string option) -> bool -> string
OCaml

Innovation. Community. Security.