Craig Oates
6 years ago
5 changed files with 13 additions and 18 deletions
@ -1,12 +1 @@
|
||||
module internal MapProcessing |
||||
|
||||
// You are up to here craig |
||||
// starting to build a markov map using the functions in text and file procssing... |
||||
|
||||
(* |
||||
Notes for possible way forward |
||||
let random = defaultArg random (Random().Next) |
||||
let isStartOfSentence = defaultArg isStartOfSentence (Regex(@"^[A-Z]").IsMatch) |
||||
let isEndOfSentence = defaultArg isEndOfSentence (Regex(@"\.").IsMatch) |
||||
let startWords, otherWords = map |> Map.partition (fun k _ -> isStartOfSentence k) |
||||
*) |
||||
module internal MapProcessing |
@ -1,8 +1,8 @@
|
||||
// Learn more about F# at http://fsharp.org |
||||
// See the 'F# Tutorial' project for more help. |
||||
|
||||
#load "Library1.fs" |
||||
open WetPancake |
||||
|
||||
// Define your library scripting code here |
||||
#load "TextProcessing.fs" |
||||
open TextProcessing |
||||
|
||||
IsStartOfSentence "bob" |
||||
IsEndOfSentence "bill." |
||||
|
Loading…
Reference in new issue