Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

entropy-pruning mistake #114

Closed
tianliang0123 opened this issue May 22, 2015 · 3 comments
Closed

entropy-pruning mistake #114

tianliang0123 opened this issue May 22, 2015 · 3 comments

Comments

@tianliang0123
Copy link

Each time when I used the entropy based pruning method in ~/mosesdecoder-RELEASE-3.0/contrib/relent-filter there will be a mistake as below, even I changed the version to 0.91, the mistake is still there:
Use of uninitialized value $_[0] in substitution (s///) at /usr/share/perl/5.14/File/Basename.pm line 341.
fileparse(): need a valid pathname at /home/tianliang/research/mosesdecoder-RELEASE-3.0/contrib/relent-filter/scripts/calcPruningScores.pl line 140

@tianliang0123
Copy link
Author

Hi, I have solved the problem by define the $TRANSLATION_TABLE_FILE and $REORDERING_TABLE_FILE, such as:
my $REORDERING_TABLE_FILE;
my $TRANSLATION_TABLE;

@wlin12
Copy link

wlin12 commented May 22, 2015

Hi Tian Liang,

Those variables should we automatically read from the moses.ini file you are passing as argument (lines 311 and 316 in that script). These need to be the absolute path, also if you are using a different template for moses.ini, these might not work.

Passing these manually like what you are doing is also fine.

Wang Ling

@tianliang0123
Copy link
Author

Thank you very much Wang Ling, I defined the variables and gave a absolute path now it works fine both in version 0.91 and release 3.0. Thanks for your reply!
Tian Liang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants