mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Remove gc for now
This commit is contained in:
@@ -57,13 +57,6 @@ module Linguist
|
||||
nil
|
||||
end
|
||||
|
||||
# Public: Prune infrequent tokens.
|
||||
#
|
||||
# Returns receiver Classifier instance.
|
||||
def gc
|
||||
self
|
||||
end
|
||||
|
||||
# Public: Guess language of data.
|
||||
#
|
||||
# data - Array of tokens or String data to analyze.
|
||||
|
||||
@@ -89,7 +89,7 @@ module Linguist
|
||||
data = File.read(sample[:path])
|
||||
classifier.train(language.name, data)
|
||||
}
|
||||
classifier.gc
|
||||
classifier
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user