-
Notifications
You must be signed in to change notification settings - Fork 40
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
FileNotFoundError #12
Comments
hi zhang-jinyi, I have same problem, did it solve for you, please need help to solve that problem. |
I had the same problem , then I replaced moses2 with moses . |
hey!
any idea how to replace moses2 with moses. Also could you give a link
please?
…On Fri, Jul 12, 2019 at 10:20 AM qyNing ***@***.***> wrote:
I had the same problem , then I replaced moses2 with moses .
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#12?email_source=notifications&email_token=AFNDDVWYQPXXTP3EEN22GHDP7AWDJA5CNFSM4HSG2LI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZY5UEY#issuecomment-510777875>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFNDDVQQ4CFOXRJOSMBUYLDP7AWDJANCNFSM4HSG2LIQ>
.
|
You just need to replace the moses2 in the code with the moses in your path, but Moses and Moses2 aren't exactly alike, there's some differences in pruning, stack configuration etc. You can refer to this http://www.statmt.org/moses/?n=Site.Moses2 |
Compile contrib/sigtest-filter: |
I had the same problem, and I have managed it by installing Moses2. As Moses does not build Moses2 without specifying XMLRPC-c: 1.39.12 Now, use the command below to build Moses2.
For more details, manually execute each command corresponding to each step in |
Hello toshohirasawa, |
I'll leave you with my notes for building Moses. I hope it will be useful to someone else. XMLRPC-c: 1.39.12 If you run configure at this stage, you may get the following message and it may not work.
So, you first install the library. Then, configure, make and install it.
cmph 2.0 Then, configure, make and install it.
Moses Install libbz2-dev as well, as it may cause bz2-related errors. Build with the libraries that you have installed above. It will take a while, but when you see SUCCESS at the end, it's OK. |
Hi,
Sorry to trouble you, but I had this error:
ERROR: compile contrib/sigtest-filter at /home/zhang/data-short/monoses/third-party/moses/scripts/generic/binarize4moses2.perl line 34.
ERROR: compile contrib/sigtest-filter at /home/zhang/data-short/monoses/third-party/moses/scripts/generic/binarize4moses2.perl line 34.
Using SCRIPTS_ROOTDIR: /home/zhang/data-short/monoses/third-party/moses/scripts
Not executable: /home/zhang/data-short/monoses/third-party/moses/bin/moses2 at /home/zhang/data-short/monoses/third-party/moses/scripts/training/mert-moses.pl line 466.
Traceback (most recent call last):
File "/home/zhang/.pyenv/versions/3.7.2/lib/python3.7/shutil.py", line 563, in move
os.rename(src, real_dst)
FileNotFoundError: [Errno 2] No such file or directory: 'cj-word-smt/tmpou08sq8q/mert/moses.ini' -> 'cj-word-smt/step7/src2trg.it1.moses.ini'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "train.py", line 484, in
main()
File "train.py", line 478, in main
unsupervised_tuning(args)
File "train.py", line 366, in unsupervised_tuning
shutil.move(args.tmp + '/mert/moses.ini', config[(src, trg)])
File "/home/zhang/.pyenv/versions/3.7.2/lib/python3.7/shutil.py", line 577, in move
copy_function(src, real_dst)
File "/home/zhang/.pyenv/versions/3.7.2/lib/python3.7/shutil.py", line 263, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/home/zhang/.pyenv/versions/3.7.2/lib/python3.7/shutil.py", line 120, in copyfile
with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: 'cj-word-smt/tmpou08sq8q/mert/moses.ini'
Is that the moses2 didn't been compiled?
The text was updated successfully, but these errors were encountered: