Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. module textAnalysis
  2. val readFile : filename:string -> string
  3. val cumSum : lst:int list -> int list
  4. val reverseLookup : monotonic:'a list -> v:'a -> int when 'a : comparison
  5. val rnd : System.Random
  6. val alphabet : char list
  7. val randomChar : hist:int list -> char
  8. val randomString : hist:int list -> len:int -> string
  9. val histogram : str:string -> int list
  10. val convertText : src:string -> string
  11. val diff : h1:int list * h2:int list -> double
  12. val cooccurrence : src:string -> int list list
  13. val markovChain : cooc:int list list * len:int -> string
  14. val diff2 : c1:int list list * c2:int list list -> float
  15. type wordHistogram = (string * int) list
  16. val wordHistogram : src:string -> wordHistogram
  17. val randomWords : wHist:wordHistogram * nWords:int -> string
  18. val diffw : w1:wordHistogram * w2:wordHistogram -> float
  19. type wordCooccurrences = (string * wordHistogram) list
  20. val cooccurrenceOfWords : src:string -> wordCooccurrences
  21. val wordMarkovChain : wCooc:wordCooccurrences * nWords:int -> string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement