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.
|
# Returns trained Classifier.
|
||||||
def self.classifier
|
def self.classifier
|
||||||
classifier = Classifier.new
|
classifier = Classifier.new
|
||||||
each { |sample| classifier.train(sample.language, sample.data) }
|
each { |sample| classifier.train(sample.language.name, sample.data) }
|
||||||
classifier.gc
|
classifier.gc
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user