Created
August 22, 2012 23:36
-
-
Save cored/3430574 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(in-ns 'word) | |
(clojure/refer 'clojure) | |
(def token-regex #"\w+") | |
(defn to-lower-case [token-string] | |
(.toLowerCase token-string)) | |
(defn tokenize-str [input-string] | |
(map to-lower-case (re-seq token-regex input-string))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment