diff --git a/multeval.sh b/multeval.sh index 83cb58f..ebe4867 100755 --- a/multeval.sh +++ b/multeval.sh @@ -21,5 +21,5 @@ done # Specify -Dfile.encoding so that the meteor paraphrase tables load properly java -Dfile.encoding=UTF8 $flags \ - -cp $terJar:$meteorJar:$scriptDir/multeval-${version}.jar \ + -cp $terJar:$meteorJar:$scriptDir/multeval-${version}.jar:$scriptDir \ multeval.MultEval "$@" diff --git a/src/multeval/MultEval.java b/src/multeval/MultEval.java index 2acf795..e6b6ea8 100644 --- a/src/multeval/MultEval.java +++ b/src/multeval/MultEval.java @@ -4,7 +4,7 @@ import jannopts.Configurator; import java.io.IOException; -import java.io.FileInputStream; +import java.io.InputStream; import java.util.Properties; import java.util.ArrayList; import java.util.List; @@ -72,7 +72,7 @@ static int initThreads(final List> metrics, int threads) { private static String loadVersion() throws IOException { Properties props = new Properties(); - FileInputStream in = new FileInputStream("constants"); + InputStream in = MultEval.class.getResourceAsStream("/constants"); props.load(in); in.close(); String version = props.getProperty("version");