mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Fix sample training
This commit is contained in:
@@ -39,7 +39,7 @@ module Linguist
|
||||
# Returns trained Classifier.
|
||||
def self.classifier
|
||||
classifier = Classifier.new
|
||||
each { |sample| classifier.train(sample.language, sample.data) }
|
||||
each { |sample| classifier.train(sample.language.name, sample.data) }
|
||||
classifier.gc
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user