Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'vowpalwabbit/searn_sequencetask.cc')
-rw-r--r--vowpalwabbit/searn_sequencetask.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/vowpalwabbit/searn_sequencetask.cc b/vowpalwabbit/searn_sequencetask.cc
index f2487e47..e1001328 100644
--- a/vowpalwabbit/searn_sequencetask.cc
+++ b/vowpalwabbit/searn_sequencetask.cc
@@ -351,8 +351,7 @@ namespace SequenceTask_Easy {
out->push_back( lab->costs[l].weight_index );
}
- void structured_predict_v1(vw& vw, example**ec, size_t len, stringstream*output_ss, stringstream*truth_ss) {
- searn_struct srn = *(searn_struct*)vw.searnstr;
+ void structured_predict_v1(vw& vw, searn& srn, example**ec, size_t len, stringstream*output_ss, stringstream*truth_ss) {
float total_loss = 0;
size_t history_length = max(hinfo.features, hinfo.length);
bool is_train = false;