summaryrefslogtreecommitdiff
path: root/mteval/ns.cc
diff options
context:
space:
mode:
authorChris Dyer <redpony@gmail.com>2015-04-02 00:50:04 -0400
committerChris Dyer <redpony@gmail.com>2015-04-02 00:50:04 -0400
commit5ee02ce1602f2fce6d5af5db93c2278fe6c9ede5 (patch)
tree7ebad8dd99e38d190c579f425c3eb959363e96e5 /mteval/ns.cc
parente7d77de8a9b9929b22fc6562f88f3668900f9662 (diff)
parent737ed7a7f932b1a7e40d2755bcdee6bc0aa2de63 (diff)
Merge pull request #70 from redpony/cmake
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) {