diff --git a/Appendix A/IndexText.ps1 b/Appendix A/IndexText.ps1 index 067d8b7..335d5be 100644 --- a/Appendix A/IndexText.ps1 +++ b/Appendix A/IndexText.ps1 @@ -1,7 +1,7 @@ -function SlowTrain($text) { +function SlowTrain($text) { $h = @{} - [regex]::split($text.ToLower(), ‘\W+’) | + [regex]::split($text.ToLower(), �\W+�) | ForEach { $h[$_] ='' } @@ -11,7 +11,7 @@ function SlowTrain($text) { function FastTrain($text) { $h = @{} - ForEach ($word in [regex]::split($text.ToLower(), ‘\W+’) ) + ForEach ($word in [regex]::split($text.ToLower(), �\W+�) ) { $h[$word] = '' }