ELITR / SLTev

SLTev is a tool for comprehensive evaluation of (simultaneous) spoken language translation.
8 stars 3 forks source link

SLTev does not work when started outside its directory #15

Closed obo closed 3 years ago

obo commented 3 years ago

SLTev must be runnable from anywhere. Currently, very likely a number of places in SLTev assumes that ./ is SLTev-scripts.

Use the following to find SLTev's directory:

import os
sltev_home = os.path.dirname(os.path.realpath(__file__))
print(sltev_home)

Then use sltev_home everywhere.

obo commented 3 years ago

The first case when you run into this problem is the chmod for mwerSegmenter. Actually, mwerSegmenter should be executable already in git repo, no chmod should be needed.

obo commented 3 years ago

Another immediate problem is that with -g, elitr-testset is cloned to the current directory. It should be cloned to sltev_home only.

obo commented 3 years ago

The main problem is solved. I am leaving the sub-issue of where elitr-testset should be cloned aside now.