artetxem / monoses

Unsupervised Statistical Machine Translation
GNU General Public License v3.0
228 stars 41 forks source link

Segmentation fault: STEP 7 unsupervised_tuning #3

Closed liujiqiang999 closed 5 years ago

liujiqiang999 commented 6 years ago

Hi, thank you for your great work. I run this code and encounter error, segmentation fault, during STEP 7. More specifically, the error occurred in code is https://github.com/artetxem/monoses/blob/c8549e0cf2830de44374a4560a8c81cedba8161d/train.py#L353

and part of log file is log.txt Could you give some advice about this problem? Thank you.

15091444119 commented 5 years ago

I got the same error.

15091444119 commented 5 years ago

Hi, thank you for your great work. I run this code and encounter error, segmentation fault, during STEP 7. More specifically, the error occurred in code is monoses/train.py

Line 353 in c8549e0

bash(quote(MOSES + '/scripts/training/mert-moses.pl') + and part of log file is log.txt Could you give some advice about this problem? Thank you.

Hi, have you solved this problem?

liujiqiang999 commented 5 years ago

@15091444119 Sorry, I didn't solve this problem. Because of some reasons, I didn't study it.

15091444119 commented 5 years ago

@JiqiangLiu Thanks anyway!

liujiqiang999 commented 5 years ago

Segmentation errors usually mean that the input may be problematic. You could check whether the input is wrong.

artetxem commented 5 years ago

This looks like a compilation issue with Moses. Make sure that Moses is properly compiled (e.g. moses2 should exist under bin).

liujiqiang999 commented 5 years ago

Recently, I solve the segmentation fault but during the translation by removing the special char '|' in the test data.