aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2012-07-20 15:54:41 -0500
committerJoshua Peek <josh@joshpeek.com>2012-07-20 15:54:41 -0500
commitf461150eeade19e809dbafa1ccd6864f3eaea855 (patch)
treeb5d2b895cf89d0f3bf286f856e03c5bbdaa6aef2
parent7292bdc18078784849526a5f8620ddb80ec4d8f1 (diff)
Fix classifier test task
-rw-r--r--Rakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 411c9aa..6b44b74 100644
--- a/Rakefile
+++ b/Rakefile
@@ -35,7 +35,7 @@ namespace :classifier do
guessed_language, score = Linguist::Classifier.instance.classify(data).first
total += 1
- guessed_language.name == file_language ? correct += 1 : incorrect += 1
+ guessed_language == file_language ? correct += 1 : incorrect += 1
print "\r\e[0K%d:%d %g%%" % [correct, incorrect, (correct.to_f/total.to_f)*100]
$stdout.flush