ghpaetzold / questplusplus

Pipelined quality estimation.
49 stars 14 forks source link

Config. parser: add a "/" at the end a tool's path #20

Open fredblain opened 8 years ago

fredblain commented 8 years ago

With this line in my config file:

[...]
 ! Language model tools:
tools.ngram.path = /export/tools/srilm/bin/i686-m64
[...]

I got:

[...]
java.io.IOException: Cannot run program "/home/fblain/workspace/tools/srilm-1.7.1/bin/i686-m64ngram": error=2, No such file or directory
[...]

It works properly with a "/" at the end of the config. line. I assume the config parser concatenates the path and a binary file without a "/" between them (i.e. then assuming the path already contains it at its end).