Skip to content

Commit

Permalink
Unbreaking by unprivatizing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Edwin Chen committed Jul 23, 2011
1 parent fe6e44d commit 41f6585
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions lib/unsupervised-language-detection/language-detector.rb
Expand Up @@ -7,8 +7,6 @@ def to_ngrams(n)
self.normalize_tweet.scan(/.{#{n}}/)
end

private

# TODO: Try not normalizing out all non-ASCII characters! Should significantly reduce false positive rate.
def normalize_tweet
self.remove_tweeters.remove_links.remove_hashtags.downcase.gsub(/\s/, " ").gsub(/[^a-z0-9\s]/, "")
Expand Down
2 changes: 1 addition & 1 deletion lib/unsupervised-language-detection/version.rb
@@ -1,3 +1,3 @@
module UnsupervisedLanguageDetection
VERSION = "0.0.3"
VERSION = "0.0.4"
end

0 comments on commit 41f6585

Please sign in to comment.