summaryrefslogtreecommitdiff
path: root/decoder/ff_external.cc
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cab.ark.cs.cmu.edu>2012-10-16 00:37:21 -0400
committerChris Dyer <cdyer@cab.ark.cs.cmu.edu>2012-10-16 00:37:21 -0400
commit09a522afef40e514e741ddf5f9bbc61cfb2170e8 (patch)
treea6650e02b017ce0b3ed534ad76d6a8e45a26ab0c /decoder/ff_external.cc
parent21a8287a2e1451db41c35494647c7b8c3e7e5adc (diff)
clean up of bad header includes
Diffstat (limited to 'decoder/ff_external.cc')
-rw-r--r--decoder/ff_external.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/decoder/ff_external.cc b/decoder/ff_external.cc
index dbb903d0..dea0e20f 100644
--- a/decoder/ff_external.cc
+++ b/decoder/ff_external.cc
@@ -1,8 +1,10 @@
#include "ff_external.h"
-#include "stringlib.h"
#include <dlfcn.h>
+#include "stringlib.h"
+#include "hg.h"
+
using namespace std;
ExternalFeature::ExternalFeature(const string& param) {
@@ -50,8 +52,8 @@ void ExternalFeature::FinalTraversalFeatures(const void* context,
void ExternalFeature::TraversalFeaturesImpl(const SentenceMetadata& smeta,
const Hypergraph::Edge& edge,
const std::vector<const void*>& ant_contexts,
- FeatureVector* features,
- FeatureVector* estimated_features,
+ SparseVector<double>* features,
+ SparseVector<double>* estimated_features,
void* context) const {
ff_ext->TraversalFeaturesImpl(smeta, edge, ant_contexts, features, estimated_features, context);
}