Moses-support Digest, Vol 86, Issue 56

Send Moses-support mailing list submissions to
moses-support@mit.edu

To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.mit.edu/mailman/listinfo/moses-support
or, via email, send a message with subject or body 'help' to
moses-support-request@mit.edu

You can reach the person managing the list at
moses-support-owner@mit.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Moses-support digest..."


Today's Topics:

1. Re: error during compiling moses (amir haghighi)
2. Re: error during compiling moses (Hieu Hoang)
3. Re: How to convert new moses.ini format of to old format
(Rajen Chatterjee)
4. Re: error during testing (amir haghighi)
5. Error while compiling Moses (nakul sharma)


----------------------------------------------------------------------

Message: 1
Date: Fri, 20 Dec 2013 01:05:42 +0330
From: amir haghighi <amir.haghighi.64@gmail.com>
Subject: Re: [Moses-support] error during compiling moses
To: moses-support@mit.edu
Message-ID:
<CA+UVbEjR5hWewvJy_xNfNC6-V7-VAtvGFnyquSPhaH40vRNjBw@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Dear Kenneth Heafield

Thank you for your help. I installed libbz2-dev and the problem was solved.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20131220/1d9c6861/attachment-0001.htm

------------------------------

Message: 2
Date: Thu, 19 Dec 2013 21:40:43 +0000
From: Hieu Hoang <Hieu.Hoang@ed.ac.uk>
Subject: Re: [Moses-support] error during compiling moses
To: amir haghighi <amir.haghighi.64@gmail.com>
Cc: moses-support <moses-support@mit.edu>
Message-ID:
<CAEKMkbg97pUpyAcZ=HvN-z4m6MvpwqpR+OX7TUh2GB74F_gqEQ@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

for future reference, there's a list of packages to install, for each Linux
distribution here:
http://www.statmt.org/moses/?n=Development.GetStarted


On 19 December 2013 21:35, amir haghighi <amir.haghighi.64@gmail.com> wrote:

> Dear Kenneth Heafield
>
> Thank you for your help. I installed libbz2-dev and the problem was solved.
>
> _______________________________________________
> Moses-support mailing list
> Moses-support@mit.edu
> http://mailman.mit.edu/mailman/listinfo/moses-support
>
>


--
Hieu Hoang
Research Associate
University of Edinburgh
http://www.hoang.co.uk/hieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20131219/dce49022/attachment-0001.htm

------------------------------

Message: 3
Date: Fri, 20 Dec 2013 05:49:44 +0000
From: Rajen Chatterjee <rajen.k.chatterjee@gmail.com>
Subject: Re: [Moses-support] How to convert new moses.ini format of to
old format
To: Hieu Hoang <Hieu.Hoang@ed.ac.uk>
Cc: "moses-support@mit.edu" <moses-support@mit.edu>
Message-ID:
<CAC4-+NxFeHePA9g=fNvq2BzAMdTvSTEOAFcF9jRh4=WcUZwDPg@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

I am getting this error during decoding using the new moses:

Start loading text SCFG phrase table. Moses format : [34.000] seconds
Reading
/home/rajen/Public/SMT/experiments/acl-14-TAG/results/pb-cross-valid/en-kK1/moses_data/model/phrase-table.gz
----5---10---15---20---25---30---35---40---45---50---55---60---65---70---75---80---85---90---95--100
***************Check nextPos != string::npos failed in moses/Phrase.cpp:214


So I thought let me try decoding using old mosesdecoder


On Thu, Dec 19, 2013 at 5:31 PM, Hieu Hoang <Hieu.Hoang@ed.ac.uk> wrote:

> There's no script to do that.
>
> Is there a reason you need to use the old decoder?
>
>
> On 19 December 2013 16:40, Rajen Chatterjee <rajen.k.chatterjee@gmail.com>wrote:
>
>> Hello,
>> There is a script "scripts/training/convert-moses-ini-to-v2.perl"
>> which converts an old format of moses.ini to new format, but I want vice
>> versa i.e. from new format to old format. How can I achieve this?
>>
>>
>> --
>> -Regards,
>> Rajen Chatterjee.
>>
>> _______________________________________________
>> Moses-support mailing list
>> Moses-support@mit.edu
>> http://mailman.mit.edu/mailman/listinfo/moses-support
>>
>>
>
>
> --
> Hieu Hoang
> Research Associate
> University of Edinburgh
> http://www.hoang.co.uk/hieu
>
>


--
-Regards,
Rajen Chatterjee.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20131220/42c8cb20/attachment-0001.htm

------------------------------

Message: 4
Date: Fri, 20 Dec 2013 11:06:26 +0330
From: amir haghighi <amir.haghighi.64@gmail.com>
Subject: Re: [Moses-support] error during testing
To: moses-support@mit.edu
Message-ID:
<CA+UVbEgy7KhfNWeTX-sLCxwSEY0zHDtaaMYBSPY9qZTi8u9ALw@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Dear Hieu

I got the latest code but the problem is not solved yet. It still gives the
segmentation fault error ~x(.
Is there any other way to solve this problem except downgrading gcc?

Regards
Amir





On Wed, Dec 18, 2013 at 8:22 PM, Hieu Hoang <Hieu.Hoang@ed.ac.uk> wrote:

> ah, that's good. However, if you get the latest Moses code by doing
> git pull
> you shouldn't get the problem. It was fixed on the 15th November
>
> https://github.com/moses-smt/mosesdecoder/commit/17887a27969e83f4100bd0f4af98986e33999fbe
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20131220/16e8f089/attachment-0001.htm

------------------------------

Message: 5
Date: Fri, 20 Dec 2013 13:49:04 +0530
From: nakul sharma <nakul777@gmail.com>
Subject: [Moses-support] Error while compiling Moses
To: moses-support@mit.edu
Message-ID:
<CAHGfYnqshqYjqV90=nmUjMU81-cPVTG1PvJBNeDWbuZEx80q1w@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

I am trying to compile moses. But I am getting following error messages.
Please help in this regard.

notice: found boost-build.jam at /usr/share/boost-build/boost-build.jam
notice: loading Boost.Build from /usr/share/boost-build/kernel
notice: Searching /etc /home/nakul /usr/share/boost-build/kernel
/usr/share/boost-build /usr/share/boost-build/kernel
/usr/share/boost-build/util /usr/share/boost-build/build
/usr/share/boost-build/tools /usr/share/boost-build/contrib
/usr/share/boost-build/. for site-config configuration file site-config.jam
.
notice: Configuration file site-config.jam not found in /etc /home/nakul
/usr/share/boost-build/kernel /usr/share/boost-build
/usr/share/boost-build/kernel /usr/share/boost-build/util
/usr/share/boost-build/build /usr/share/boost-build/tools
/usr/share/boost-build/contrib /usr/share/boost-build/. .
notice: Searching /home/nakul /usr/share/boost-build/kernel
/usr/share/boost-build /usr/share/boost-build/kernel
/usr/share/boost-build/util /usr/share/boost-build/build
/usr/share/boost-build/tools /usr/share/boost-build/contrib
/usr/share/boost-build/. for user-config configuration file user-config.jam
.
notice: Configuration file user-config.jam not found in /home/nakul
/usr/share/boost-build/kernel /usr/share/boost-build
/usr/share/boost-build/kernel /usr/share/boost-build/util
/usr/share/boost-build/build /usr/share/boost-build/tools
/usr/share/boost-build/contrib /usr/share/boost-build/. .

file /home/nakul/mosesdecoder-master/previous.sh
#!/bin/sh
/usr/bin/bjam -j2 --debug-configuration -d2


bash -c "g++ -lSegFault -x c++ - <<<'int main() {}' -o
/home/nakul/mosesdecoder-master/dummy >/dev/null 2>/dev/null && rm
/home/nakul/mosesdecoder-master/dummy 2>/dev/null"
0
bash -c "g++ -static -lSegFault -x c++ - <<<'int main() {}' -o
/home/nakul/mosesdecoder-master/dummy >/dev/null 2>/dev/null && rm
/home/nakul/mosesdecoder-master/dummy 2>/dev/null"
1
bash -c "g++ -lboost_program_options-1_46_1 -x c++ - <<<'int main() {}' -o
/home/nakul/mosesdecoder-master/dummy >/dev/null 2>/dev/null && rm
/home/nakul/mosesdecoder-master/dummy 2>/dev/null"
1
bash -c "g++ -static -lboost_program_options -x c++ - <<<'int main() {}'
-o /home/nakul/mosesdecoder-master/dummy >/dev/null 2>/dev/null && rm
/home/nakul/mosesdecoder-master/dummy 2>/dev/null"
0
bash -c "g++ -lboost_system-mt -static -x c++ - <<<'int main() {}' -o
/home/nakul/mosesdecoder-master/dummy >/dev/null 2>/dev/null && rm
/home/nakul/mosesdecoder-master/dummy 2>/dev/null"
0
bash -c "g++ -lboost_thread-mt -static -x c++ - <<<'int main() {}' -o
/home/nakul/mosesdecoder-master/dummy >/dev/null 2>/dev/null && rm
/home/nakul/mosesdecoder-master/dummy 2>/dev/null"
0
bash -c "g++ -lboost_program_options-mt -static -x c++ - <<<'int main()
{}' -o /home/nakul/mosesdecoder-master/dummy >/dev/null 2>/dev/null && rm
/home/nakul/mosesdecoder-master/dummy 2>/dev/null"
0
bash -c "g++ -lboost_unit_test_framework-mt
-DBOOST_TEST_MODULE=CompileTest -include boost/test/unit_test.hpp -static
-x c++ - <<<'BOOST_AUTO_TEST_CASE(foo) {}' -o
/home/nakul/mosesdecoder-master/dummy >/dev/null 2>/dev/null && rm
/home/nakul/mosesdecoder-master/dummy 2>/dev/null"
0
bash -c "g++ -lboost_iostreams-mt -static -x c++ - <<<'int main() {}' -o
/home/nakul/mosesdecoder-master/dummy >/dev/null 2>/dev/null && rm
/home/nakul/mosesdecoder-master/dummy 2>/dev/null"
0
bash -c "g++ -lboost_filesystem-mt -static -x c++ - <<<'int main() {}' -o
/home/nakul/mosesdecoder-master/dummy >/dev/null 2>/dev/null && rm
/home/nakul/mosesdecoder-master/dummy 2>/dev/null"
0
bash -c "g++ -static -lz -x c++ - <<<'int main() {}' -o
/home/nakul/mosesdecoder-master/dummy >/dev/null 2>/dev/null && rm
/home/nakul/mosesdecoder-master/dummy 2>/dev/null"
0
bash -c "g++ -ltcmalloc_minimal -x c++ - <<<'int main() {}' -o
/home/nakul/mosesdecoder-master/dummy >/dev/null 2>/dev/null && rm
/home/nakul/mosesdecoder-master/dummy 2>/dev/null"
1
Tip: install tcmalloc for faster threading. See BUILD-INSTRUCTIONS.txt for
more information.
warning: No toolsets are configured.
warning: Configuring default toolset "gcc".
warning: If the default is wrong, your build may not work correctly.
warning: Use the "toolset=xxxxx" option to override our guess.
warning: For more configuration options, please consult
warning:
http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html
notice: will use 'g++' for gcc, condition <toolset>gcc-4.6
notice: using gcc libraries :: <toolset>gcc-4.6 :: /usr/bin /usr/lib
/usr/lib32 /usr/lib64
notice: using gcc archiver :: <toolset>gcc-4.6 :: /usr/bin/ar
notice: using gcc ranlib :: <toolset>gcc-4.6 :: /usr/bin/ranlib
warning: toolset gcc initialization: can not find tool windres
warning: initialized from
notice: using rc compiler :: <toolset>gcc-4.6 :: /usr/bin/as
bash -c "g++ -lbz2 -x c++ - <<<'int main() {}' -o
/home/nakul/mosesdecoder-master/dummy >/dev/null 2>/dev/null && rm
/home/nakul/mosesdecoder-master/dummy 2>/dev/null"
1
bash -c "g++ -llzma -x c++ - <<<'int main() {}' -o
/home/nakul/mosesdecoder-master/dummy >/dev/null 2>/dev/null && rm
/home/nakul/mosesdecoder-master/dummy 2>/dev/null"
1
...patience...
...found 3439 targets...
...updating 4 targets...
gcc.link
moses-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/moses

"g++" -o
"moses-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/moses"
-Wl,--start-group
"moses-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/Main.o"
"moses-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/IOWrapper.o"
"moses-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/mbr.o"
"moses-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/LatticeMBR.o"
"moses-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/TranslationAnalysis.o"
"moses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/libmoses.a"
-Wl,-Bstatic -lz -lboost_filesystem-mt -lboost_iostreams-mt
-lboost_thread-mt -lboost_system-mt -lz -Wl,-Bdynamic -lrt -ldl -lSegFault
-lrt -Wl,--end-group -g -pthread


/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_iostreams-mt.a(bzip2.o):
In function `boost::iostreams::detail::bzip2_base::do_init(bool, void*
(*)(void*, int, int), void (*)(void*, void*), void*)':
(.text+0x2e9): undefined reference to `BZ2_bzDecompressInit'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_iostreams-mt.a(bzip2.o):
In function `boost::iostreams::detail::bzip2_base::do_init(bool, void*
(*)(void*, int, int), void (*)(void*, void*), void*)':
(.text+0x391): undefined reference to `BZ2_bzCompressInit'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_iostreams-mt.a(bzip2.o):
In function `boost::iostreams::detail::bzip2_base::end(bool)':
(.text+0x455): undefined reference to `BZ2_bzDecompressEnd'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_iostreams-mt.a(bzip2.o):
In function `boost::iostreams::detail::bzip2_base::end(bool)':
(.text+0x4d1): undefined reference to `BZ2_bzCompressEnd'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_iostreams-mt.a(bzip2.o):
In function `boost::iostreams::detail::bzip2_base::compress(int)':
(.text+0x18c): undefined reference to `BZ2_bzCompress'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_iostreams-mt.a(bzip2.o):
In function `boost::iostreams::detail::bzip2_base::decompress()':
(.text+0x19c): undefined reference to `BZ2_bzDecompress'
collect2: ld returned 1 exit status
...failed gcc.link
moses-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/moses...
...skipped <p/home/nakul/mosesdecoder-master/bin>moses for lack of
<pmoses-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>moses...
testing.capture-output
moses/LM/bin/BackwardTest.test/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/BackwardTest.run


LD_LIBRARY_PATH="/usr/bin:/usr/lib:/usr/lib32:/usr/lib64:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH


"moses/LM/bin/BackwardTest.test/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/BackwardTest"
"moses/LM/backward.arpa" >
"moses/LM/bin/BackwardTest.test/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/BackwardTest.output"
2>&1
status=$?
echo >>
"moses/LM/bin/BackwardTest.test/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/BackwardTest.output"
echo EXIT STATUS: $status >>
"moses/LM/bin/BackwardTest.test/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/BackwardTest.output"
if test $status -eq 0 ; then
cp
"moses/LM/bin/BackwardTest.test/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/BackwardTest.output"
"moses/LM/bin/BackwardTest.test/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/BackwardTest.run"
fi
verbose=0
if test $status -ne 0 ; then
verbose=1
fi
if test $verbose -eq 1 ; then
echo ====== BEGIN OUTPUT ======
cat
"moses/LM/bin/BackwardTest.test/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/BackwardTest.output"
echo ====== END OUTPUT ======
fi
exit $status

====== BEGIN OUTPUT ======
Running 1 test case...
moses/LM/BackwardTest.cpp(162): error in "ProbingAll": difference{100%}
between static_cast<double>(TransformLMScore( 0.0 )){0} and
static_cast<double>(ngramScore){1.3724476843890443e-07} exceeds 0.01%

*** 1 failure detected in test suite "BackwardTest"

EXIT STATUS: 201
====== END OUTPUT ======
...failed testing.capture-output
moses/LM/bin/BackwardTest.test/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/BackwardTest.run...
...failed updating 2 targets...
...skipped 2 targets...
The build failed with command line:
/usr/bin/bjam -j2 --debug-configuration -d2
If you need support, attach the full output to your e-mail.
ERROR

--
Thanks & Regards,
Nakul Sharma
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20131220/a01ad3c9/attachment.htm

------------------------------

_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support


End of Moses-support Digest, Vol 86, Issue 56
*********************************************

0 Response to "Moses-support Digest, Vol 86, Issue 56"

Post a Comment