diff options
author | John Langford <jl@nyclamp.(none)> | 2012-11-26 07:37:17 +0400 |
---|---|---|
committer | John Langford <jl@nyclamp.(none)> | 2012-11-26 07:37:17 +0400 |
commit | f79e4dd795e81ffce22c424f11fd68feb778220c (patch) | |
tree | c7a9a3b3eb0b5551157dde95d1171e0f85054615 /vowpalwabbit/vw.h | |
parent | 1002d30ed97b00e1b02c9438877def57f763fb85 (diff) |
added back old import_example
Diffstat (limited to 'vowpalwabbit/vw.h')
-rw-r--r-- | vowpalwabbit/vw.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vowpalwabbit/vw.h b/vowpalwabbit/vw.h index 5e16490e..dcb76778 100644 --- a/vowpalwabbit/vw.h +++ b/vowpalwabbit/vw.h @@ -36,7 +36,8 @@ namespace VW { example* read_example(vw& all, char* example_line); //The more complex way to create an example. - struct feature_space { //just a helper definition. + typedef pair< unsigned char, vector<feature> > feature_space; //just a helper definition. + struct primitive_feature_space { //just a helper definition. unsigned char name; feature* fs; size_t len; }; @@ -67,7 +68,8 @@ namespace VW { } //after you create and fill feature_spaces, get an example with everything filled in. - example* import_example(vw& all, feature_space* features, size_t len); + example* import_example(vw& all, primitive_feature_space* features, size_t len); + example* import_example(vw& all, vector< feature_space > ec_info); void parse_example_label(vw&all, example&ec, string label); //notify VW that you are done with the example. |