Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module textAnalysis
- val readFile : filename:string -> string
- val cumSum : lst:int list -> int list
- val reverseLookup : monotonic:'a list -> v:'a -> int when 'a : comparison
- val rnd : System.Random
- val alphabet : char list
- val randomChar : hist:int list -> char
- val randomString : hist:int list -> len:int -> string
- val histogram : str:string -> int list
- val convertText : src:string -> string
- val diff : h1:int list * h2:int list -> double
- val cooccurrence : src:string -> int list list
- val markovChain : cooc:int list list * len:int -> string
- val diff2 : c1:int list list * c2:int list list -> float
- type wordHistogram = (string * int) list
- val wordHistogram : src:string -> wordHistogram
- val randomWords : wHist:wordHistogram * nWords:int -> string
- val diffw : w1:wordHistogram * w2:wordHistogram -> float
- type wordCooccurrences = (string * wordHistogram) list
- val cooccurrenceOfWords : src:string -> wordCooccurrences
- val wordMarkovChain : wCooc:wordCooccurrences * nWords:int -> string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement