2
Copyright (c) by respective owners including Yahoo!, Microsoft, and
3
individual contributors. All rights reserved. Released under a BSD (revised)
4
license as described in the file LICENSE.
6
// This is a function which does nothing with examples. Used when VW is used as a compressor.
11
#include "simple_label.h"
15
void learn(void* d, example*ec) {}
16
void finish(void* d) {}
18
void save_load(void* d, io_buf& model_file, bool read, bool text) {}
20
void drive(vw* all, void* d)
24
while ( !parser_done(all->p)){
25
ec = VW::get_example(all->p);
27
return_simple_example(*all, ec);
31
learner setup(vw& all)
33
sl_t sl = {NULL,save_load};
35
learner l(NULL,drive,learn,finish,sl);