summaryrefslogtreecommitdiff
path: root/mteval/ns.cc
diff options
context:
space:
mode:
authorChris Dyer <redpony@gmail.com>2015-03-03 01:14:07 -0500
committerChris Dyer <redpony@gmail.com>2015-03-03 01:14:07 -0500
commit95183b5760d7f168ae093ae8f9b29740628a278f (patch)
tree4c213e940a80a08d60141d11ec35cbe8f17d4755 /mteval/ns.cc
parentc7b2a39958912d7b85a384a871609e6db73042c7 (diff)
migration to cmake
Diffstat (limited to 'mteval/ns.cc')
-rw-r--r--mteval/ns.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/mteval/ns.cc b/mteval/ns.cc
index 075e0121..2c8bd806 100644
--- a/mteval/ns.cc
+++ b/mteval/ns.cc
@@ -13,6 +13,8 @@
#include <iostream>
#include <sstream>
+#include "config.h"
+
#include "tdict.h"
#include "filelib.h"
#include "stringlib.h"
@@ -272,14 +274,14 @@ EvaluationMetric* EvaluationMetric::Instance(const string& imetric_id) {
} else if (metric_id == "TER") {
m = new TERMetric;
} else if (metric_id == "METEOR") {
-#if HAVE_METEOR
+#ifdef METEOR_JAR
if (!FileExists(meteor_jar_path)) {
cerr << meteor_jar_path << " not found!\n";
abort();
}
m = new ExternalMetric("METEOR", string("java -Xmx1536m -jar ") + meteor_jar_path + " - - -mira -lower -t tune -l en");
#else
- cerr << "cdec was not built with the --with-meteor option." << endl;
+ cerr << "cdec was not built with the -DMETEOR_JAR=/path/to/meteor.jar option." << endl;
abort();
#endif
} else if (metric_id.find("COMB:") == 0) {