Moses-support Digest, Vol 109, Issue 27

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: changing the jamfile for integrating LM (Philipp Koehn)
2. error while running mosesserver (Santanu Pal)
3. Re: error while running mosesserver (Hieu Hoang)
4. Re: error while running mosesserver (Santanu Pal)


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

Message: 1
Date: Thu, 12 Nov 2015 12:54:32 -0500
From: Philipp Koehn <phi@jhu.edu>
Subject: Re: [Moses-support] changing the jamfile for integrating LM
To: koormoosh <koormoosh@gmail.com>
Cc: "moses-support@mit.edu" <moses-support@mit.edu>
Message-ID:
<CAAFADDC_XLjjRQvxT5_HW=Ygv-ZJjBwyp1oFyh1-bZ4XYZ9Ptw@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi,

do you really have a library associated with your language model?

I would have thought that adding your language model would as easy as
adding it to the line

alias LM : Backward.cpp BackwardLMState.cpp Base.cpp BilingualLM.cpp
Implementation.cpp Ken.cpp MultiFactor.cpp Remote.cpp SingleFactor.cpp Skel
etonLM.cpp

in moses/LM/Jamfile.


-phi



On Thu, Nov 12, 2015 at 5:40 AM, koormoosh <koormoosh@gmail.com> wrote:

> Hi Hieu,
>
> I've created MYLM.cpp, MYLM.h and defined them in FF/Factory.cpp. It turns
> out that I also need to change the jamfile but it is not clear how to do
> it. I looked at others and tried to add something similar but the "lib"
> part keeps fails the build process. Here is what I added to the jamfile:
>
> #MYLM
> local with-mylm = [ option.get "with-mylm" ] ;
> if $(with-mylm) {
> lib mylm-lib : : <search>$(with-mylm)/external/toolkit/lib ;
> obj MYLM.o : MYLM.cpp ..//headers : <include>$(with-mylm)/include ;
> alias mylm : MYLM.o mylm-lib : : : <define>LM_MY ;
> dependencies += mylm ;
> lmmacros += LM_MY ;
> }
>
> *After calling:*
>
> ./bjam --with-boost=/LM/mosesdecoder/boost_1_55_0 -j8
> --with-mylm=/MYLANGMOD/ toolset=gcc cxxflags="-std=c++11"
>
> *I get this error:*
> gcc.link moses-cmd/bin/gcc-4.9.2/release/link-static/threading-multi/moses
> /usr/bin/ld: cannot find -lmylm-lib
> collect2: error: ld returned 1 exit status
>
> I cannot interpret the error as any solutions I tried have failed. Any
> comments?
> Thanks!
>
> _______________________________________________
> Moses-support mailing list
> Moses-support@mit.edu
> http://mailman.mit.edu/mailman/listinfo/moses-support
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20151112/2cba369a/attachment-0001.html

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

Message: 2
Date: Thu, 12 Nov 2015 21:23:37 +0100
From: Santanu Pal <santanu.pal.ju@gmail.com>
Subject: [Moses-support] error while running mosesserver
To: moses-support@mit.edu
Message-ID:
<CALdLWwZEXBD5Rc_DWosGH7b08v0xAR==8ddBA9A6H9X2+kc83Q@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I ran the following comment

mosesserver -f ./resource/MT/EN-DE/Baseline/moses.ini
--server-port 9081 --server-log ./moses-log.txt

error:


FeatureFunction: UnknownWordPenalty0 start: 0 end: 0

libc++abi.dylib: terminating with uncaught exception of type
util::Exception: ./moses/ScoreComponentCollection.h:108 in static IndexPair
Moses::ScoreComponentCollection::GetIndexes(const Moses::FeatureFunction *)
threw util::Exception'.

ERROR: FeatureFunction: (?_?


please find the attached moses.ini

This ini file running well in my mac,

moses -f ./resource/MT/EN-DE/Baseline/moses.ini


best regards,

Santanu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20151112/f9825d56/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: moses.ini
Type: application/octet-stream
Size: 1021 bytes
Desc: not available
Url : http://mailman.mit.edu/mailman/private/moses-support/attachments/20151112/f9825d56/attachment-0001.obj

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

Message: 3
Date: Fri, 13 Nov 2015 10:20:02 +0000
From: Hieu Hoang <hieuhoang@gmail.com>
Subject: Re: [Moses-support] error while running mosesserver
To: Santanu Pal <santanu.pal.ju@gmail.com>, moses-support@mit.edu,
Ulrich Germann <ugermann@inf.ed.ac.uk>
Message-ID: <5645B952.7070701@gmail.com>
Content-Type: text/plain; charset="windows-1252"

strange, your moses.ini file looks correct.

Can you try running
moses -f ./resource/MT/EN-DE/Baseline/moses.ini
--server-port 9081 --server-log ./moses-log.txt
The server and the command line version have now merged into 1 executeable

On 12/11/2015 20:23, Santanu Pal wrote:
> I ran the following comment
>
> mosesserver -f ./resource/MT/EN-DE/Baseline/moses.ini
> --server-port 9081 --server-log ./moses-log.txt
>
> error:
>
>
> FeatureFunction: UnknownWordPenalty0 start: 0 end: 0
>
> libc++abi.dylib: terminating with uncaught exception of type
> util::Exception: ./moses/ScoreComponentCollection.h:108 in static
> IndexPair Moses::ScoreComponentCollection::GetIndexes(const
> Moses::FeatureFunction *) threw util::Exception'.
>
> ERROR: FeatureFunction: (?_?
>
>
> please find the attached moses.ini
>
> This ini file running well in my mac,
>
> moses -f ./resource/MT/EN-DE/Baseline/moses.ini
>
>
> best regards,
>
> Santanu
>
>
>
> _______________________________________________
> Moses-support mailing list
> Moses-support@mit.edu
> http://mailman.mit.edu/mailman/listinfo/moses-support

--
Hieu Hoang
http://www.hoang.co.uk/hieu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20151113/fbbacd87/attachment-0001.html

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

Message: 4
Date: Fri, 13 Nov 2015 11:36:29 +0100
From: Santanu Pal <santanu.pal.ju@gmail.com>
Subject: Re: [Moses-support] error while running mosesserver
To: moses-support@mit.edu
Message-ID:
<CALdLWwYgGnp_P36TN=pvrWtPwT+UvNL+J3jgp5Csni-DfJGdxQ@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi,

Thanks for your reply, but I ran with this command and find the following
error

moses -f ./resource/MT/EN-DE/Baseline/moses.ini
--server-port 9081 --server-log ./moses-log.txt

ERROR:illegal switch: --server-port

ERROR:illegal switch: --server-log


But " moses -f ./resource/MT/EN-DE/Baseline/moses.ini' command working fine.

please help.

best regards,

Santanu

On Fri, Nov 13, 2015 at 11:20 AM, Hieu Hoang <hieuhoang@gmail.com> wrote:

> strange, your moses.ini file looks correct.
>
> Can you try running
> moses -f ./resource/MT/EN-DE/Baseline/moses.ini
> --server-port 9081 --server-log ./moses-log.txt
> The server and the command line version have now merged into 1 executeable
>
>
> On 12/11/2015 20:23, Santanu Pal wrote:
>
> I ran the following comment
>
> mosesserver -f ./resource/MT/EN-DE/Baseline/moses.ini
> --server-port 9081 --server-log ./moses-log.txt
>
> error:
>
>
> FeatureFunction: UnknownWordPenalty0 start: 0 end: 0
>
> libc++abi.dylib: terminating with uncaught exception of type
> util::Exception: ./moses/ScoreComponentCollection.h:108 in static IndexPair
> Moses::ScoreComponentCollection::GetIndexes(const Moses::FeatureFunction *)
> threw util::Exception'.
>
> ERROR: FeatureFunction: (?_?
>
>
> please find the attached moses.ini
>
> This ini file running well in my mac,
>
> moses -f ./resource/MT/EN-DE/Baseline/moses.ini
>
>
> best regards,
>
> Santanu
>
>
> _______________________________________________
> Moses-support mailing listMoses-support@mit.eduhttp://mailman.mit.edu/mailman/listinfo/moses-support
>
>
> --
> Hieu Hoanghttp://www.hoang.co.uk/hieu
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20151113/0c7c72d6/attachment.html

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

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


End of Moses-support Digest, Vol 109, Issue 27
**********************************************

Related Posts :

0 Response to "Moses-support Digest, Vol 109, Issue 27"

Post a Comment