mirror of
https://github.com/neocities/neocities.git
synced 2025-08-03 08:11:56 +02:00
step back on classifier for now
This commit is contained in:
parent
3ef075b24b
commit
a37586bad4
5 changed files with 8 additions and 11 deletions
|
@ -332,9 +332,10 @@ describe 'site_files' do
|
|||
|
||||
describe 'classification' do
|
||||
before do
|
||||
$trainer.instance_variable_get('@db').redis.flushall
|
||||
puts "TODO FINISH CLASSIFIER"
|
||||
#$trainer.instance_variable_get('@db').redis.flushall
|
||||
end
|
||||
|
||||
=begin
|
||||
it 'trains files' do
|
||||
upload 'files[]' => Rack::Test::UploadedFile.new('./tests/files/classifier/ham.html', 'text/html')
|
||||
upload 'files[]' => Rack::Test::UploadedFile.new('./tests/files/classifier/spam.html', 'text/html')
|
||||
|
@ -348,6 +349,7 @@ describe 'site_files' do
|
|||
@site.classify('spam.html').must_equal 'spam'
|
||||
@site.classify('phishing.html').must_equal 'phishing'
|
||||
end
|
||||
=end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue