summaryrefslogtreecommitdiff
path: root/decoder/ff.cc
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-24 21:18:01 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-24 21:18:01 +0000
commit2cb224de7db49b761ac06b031090fe7f846744fe (patch)
treedc1d4e949081ea0e0868773bd7a31b96faa77487 /decoder/ff.cc
parent1fbdaa4d49acf90d2124aef8810d723ddbb0dad5 (diff)
FSA: simpler Scan1 ScanT1 methods, otherewise also expose edge to full Scan
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@399 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/ff.cc')
-rw-r--r--decoder/ff.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/decoder/ff.cc b/decoder/ff.cc
index 4f1a3d32..9fc2dbd8 100644
--- a/decoder/ff.cc
+++ b/decoder/ff.cc
@@ -13,10 +13,8 @@ using namespace std;
FeatureFunction::~FeatureFunction() {}
-void FeatureFunction::FinalTraversalFeatures(const void* ant_state,
- SparseVector<double>* features) const {
- (void) ant_state;
- (void) features;
+void FeatureFunction::FinalTraversalFeatures(const void* /* ant_state */,
+ SparseVector<double>* /* features */) const {
}
string FeatureFunction::usage_helper(std::string const& name,std::string const& params,std::string const& details,bool sp,bool sd) {
@@ -225,7 +223,7 @@ void ModelSet::AddFinalFeatures(const std::string& state, Hypergraph::Edge* edge
int spos = model_state_pos_[i];
ant_state = &state[spos];
}
- ff.FinalTraversalFeatures(smeta, ant_state, &edge->feature_values_);
+ ff.FinalTraversalFeatures(smeta, *edge, ant_state, &edge->feature_values_);
}
edge->edge_prob_.logeq(edge->feature_values_.dot(weights_));
}