Skip to content

Commit

Permalink
make newline = empty example rather than quit
Browse files Browse the repository at this point in the history
  • Loading branch information
John Langford committed Jan 16, 2012
1 parent 7f3778d commit 01724e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vowpalwabbit/gd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ bool command_example(example* ec, gd_thread_params* params) {
return false;

if (ec->tag.index() >= 4 && !strncmp((const char*) ec->tag.begin, "save", 4))
{
{//save state
string final_regressor_name = *(params->final_regressor_name);

if ((ec->tag).index() >= 6 && (ec->tag)[4] == '_')
Expand Down
2 changes: 1 addition & 1 deletion vowpalwabbit/parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ bool parse_atomic_example(parser* p, example *ae)
ae->indices.erase();
ae->tag.erase();
ae->sorted = false;
if (p->reader(p,ae) <= 0)
if (p->reader(p,ae) < 0)
return false;

if(p->sort_features && ae->sorted == false)
Expand Down

0 comments on commit 01724e8

Please sign in to comment.