diff options
author | Hal Daume III <me@hal3.name> | 2012-11-30 23:40:41 +0400 |
---|---|---|
committer | Hal Daume III <me@hal3.name> | 2012-11-30 23:40:41 +0400 |
commit | 5d86a28468bd67bcda2e6860b9180e0fc6a107f1 (patch) | |
tree | 234b2ffbf5fd6d0a3a9309a1753e72ddc9e7f565 /vowpalwabbit/vw.h | |
parent | a01f8e55cebe6afec3280a8fd105b4dfa418e0d0 (diff) | |
parent | f4f9fc4643c20fcbfa380d73813484a4347e1301 (diff) |
merged in john's repository
Diffstat (limited to 'vowpalwabbit/vw.h')
-rw-r--r-- | vowpalwabbit/vw.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vowpalwabbit/vw.h b/vowpalwabbit/vw.h index a4b8401b..8b661ceb 100644 --- a/vowpalwabbit/vw.h +++ b/vowpalwabbit/vw.h @@ -37,6 +37,10 @@ namespace VW { //The more complex way to create an example. 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; }; //First create the hash of a namespace. inline uint32_t hash_space(vw& all, string s) @@ -64,6 +68,7 @@ namespace VW { } //after you create and fill feature_spaces, get an example with everything filled in. + 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); example* new_unused_example(vw& all); |