-
Notifications
You must be signed in to change notification settings - Fork 56
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
Train and testing quickstart Indian model fails #226
Comments
KenLM didn't build. Type "ant kenlm". What version of Joshua are you using? Development or the 6.0.4 release? |
I'm using the development branch as the 6.0.4 was giving build failure because of boost. ant kenlm check-joshua-home: kenlm: I'm using the latest cmake and I'm trying to build on ubuntu 14.04 |
Hmm. I'm not sure, since this compiles on both OS X and CentOS 6.7 for me. One suggestion: edit Make sure to run "ant clean-kenlm" before "ant kenlm", and please report back here how things go! |
I tried to build again by removing the "-fPIC" line. But I'm still getting an error. [exec] read_compressed.cc:(.text+0xb7f): undefined reference to `inflate' |
Hi @mjpost I was able to build kenlm by adding the CXXFLAGS to cmake invocation. I build joshua after that using ant java. It gave a build success. However, when I try to train and test the Indian model it still gives the same error as above. |
Oh, the path is wrong. build_binary is in $JOSHUA/bin, not in $JOSHUA/src/joshua/decoder/ff/lm/kenlm. I just pushed up a fix, so if you're using the development version, "git pull" should fix it. Otherwise, you can fix the path manually in $JOSHUA/bin/pipeline.pl. Can you tell me the exact changes you made to $JOSHUA/jni/build_kenlm.sh, so that I can see if they should be added to Joshua? |
I did not make any changes to $JOSHUA/jni/build_kenlm.sh. I declared an environment variable for CXX flags. |
After the new pull I'm getting build fail in giza. Here are the logs that I am getting Do I need to change the make command to include the compiler options "-std=gnu++11"? |
Thanks. What did you set the environment variable $CXX to?
|
I recommend just compiling it by yourself, and then putting the binaries in $JOSHUA/bin (GIZA++, snt2cooc.out, mkcls). I'm probably going to remove GIZA++ from Joshua because it's too much of a pain to keep C++ programs compiling. |
This has been fixed in the latest push. |
Hi @mjpost GIZA++ builds successfully now. [kenlm] rebuilding... /home/ssetia/dr/joshua/src/kenlm/util/read_compressed.cc:384 in util::ReadBase* util::{anonymous}::ReadFactory(int, uint64_t&, const void*, std::size_t, bool) threw CompressedException. How do I add gzip support? |
When you built KenLM, you must have removed the following flags, which are needed to compile in gzip support (these are taken from jni/build_kenlm.sh):
|
These flags are still present in jni/build_kenlm.sh. I had included an environment variable CMAKE_CXX_FLAGS="-fPIC". If I change the value of this variable kenlm does not build and throws an error. |
Somehow your programs didn't compile against libz. I suggest wiping out bin/{build_binary,lmplz,query} and src/kenlm/build, and rebuilding. Make sure you have the development versions of the libz libraries installed. This should be standard. |
I did all of the above but I'm still getting the same error. I also removed the environment variable CMAKE_CXX_FLAGS. |
I'm sorry, I can't help. I suggest you try to compile the code directly from KenLM, then try to run |
I successfully built Joshua but I'm unable to train the quick start Indian model. The file build_binary is not present. I'm trying to build on ubuntu 14.04
The error message is added below.
After the build /joshua/src/joshua/decoder/ff/lm/kenlm this folder is not present.
$JOSHUA/bin/pipeline.pl --source bn --target en \
The text was updated successfully, but these errors were encountered: