jhclark / multeval

Easy Bootstrap Resampling and Approximate Randomization for BLEU, METEOR, and TER using Multiple Optimizer Runs. This implements "Better Hypothesis Testing for Statistical Machine Translation: Controlling for Optimizer Instability" from ACL 2011.

Home Page:http://www.cs.cmu.edu/~jhclark

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exception when running from outside multeval's folder

armatthews opened this issue · comments

The latest version of multeval tries to read a file called "./constants" to determine its version number. When multeval is executed from a location other than its own folder, this file does not exist, leading to an exception and the inability to run multeval.

Copy or link the 'constants' file to the directory where you'd like to run multeval from.

This is a "regression" introduced in commit cb6a52. Following an example on rgagnon.com, it is fixable by adding the following to build.xml:

  <manifest>
    <attribute name="Main-Class"
           value="multeval.MultEval"/>
    <attribute name="Implementation-Version" 
           value="${version}"/> 
  </manifest>

and then changing the following in MultEval.main():

String version = MultEval.class.getPackage().getImplementationVersion(); //loadVersion();

Finally, rebuild using ant clean && ant.

It looks like MultEval.loadVersion() is only ever called from MultEval.main(), so this should be safe to change. But I'm not very familiar with Java, so this may not be the best/cleanest way to patch this (hence no pull request)...

Edit: submitted as pull request #19

Any progress on this?

I have a fork of this repository with a lot of fixes including this one. You can try that if you'd like:
https://github.com/ozancaglayan/multeval