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

Issues running plain2snt.out #16

Open
theamato opened this issue Apr 4, 2023 · 2 comments
Open

Issues running plain2snt.out #16

theamato opened this issue Apr 4, 2023 · 2 comments

Comments

@theamato
Copy link

theamato commented Apr 4, 2023

I'm Trying to run plain2snt.out on two text files in colab, but I get the error /content/giza-pp/GIZA++-v2/plain2snt.out:/content/giza-pp/GIZA++-v2/plain2snt.out: cannot execute binary file.

I installed the library like this:
!git clone https://github.com/moses-smt/giza-pp.git
%cd /content/giza-pp/GIZA++-v2/ !make
and then ran plain2snt.out like this: !bash /content/giza-pp/GIZA++-v2/plain2snt.out /content/drive/MyDrive/big_corp_arabic.txt /content/drive/MyDrive/big_corp_english.txt.

I missing something? I'm working in Google Colab by the way.

@hieuhoang
Copy link
Contributor

hieuhoang commented Apr 4, 2023

no trouble for me.
# ./GIZA++-v2/plain2snt.out -h
./GIZA++-v2/plain2snt.out txt1 txt2 [txt3 txt4 -weight w]
Converts plain text into GIZA++ snt-format.
Did you compile the executable on the same machine you're trying to run it?

@theamato
Copy link
Author

theamato commented Apr 5, 2023

Yes, I did. I read herehttps://superuser.com/questions/435988/how-can-i-resolve-the-error-cannot-execute-binary-file that the error can occur if one is running the executable on the wrong architecture - apparantly Colab is using x86_64. But if you had no issues with this I guess it has to be something else?

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