diff options
author | John Langford <jl@hunch.net> | 2012-11-19 08:09:59 +0400 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2012-11-19 08:09:59 +0400 |
commit | 0862c52275cf0a1b650c204c4626bd349381881a (patch) | |
tree | ed6d0cd9c70004667118569adcee34696f25bce7 /vowpalwabbit/vw.h | |
parent | 29b4523b4e931e4ce4d6bf3b50f8fa6a5771047f (diff) |
halfway through changing library interface
Diffstat (limited to 'vowpalwabbit/vw.h')
-rw-r--r-- | vowpalwabbit/vw.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vowpalwabbit/vw.h b/vowpalwabbit/vw.h index 7d528da2..6de505b4 100644 --- a/vowpalwabbit/vw.h +++ b/vowpalwabbit/vw.h @@ -36,7 +36,10 @@ namespace VW { example* read_example(vw& all, char* example_line); //The more complex way to create an example. - typedef pair< unsigned char, vector<feature> > feature_space; //just a helper definition. + struct feature_space { //just a helper definition. + unsigned char name; + feature* fs; + size_t len; }; //First create the hash of a namespace. inline uint32_t hash_space(vw& all, string s) @@ -64,7 +67,7 @@ namespace VW { } //after you create and fill feature_spaces, get an example with everything filled in. - example* import_example(vw& all, vector< feature_space > ec_info); + example* import_example(vw& all, feature_space* ec_info, size_t len); void parse_example_label(vw&all, example&ec, string label); //notify VW that you are done with the example. |