Marcin,

Sorry, I lost track. Was this issue with placeholders ever resolved? If so, I'd like to test the missing output using -xml-input again.

Thanks,
Tom


On 5/29/2015 7:12 AM, Tom Hoar wrote:
Back in March (see copy below), I reported unexpected output using the -print-alignment-info option. To review, the problem was sentences disappeared from STDOUT when using the -print-alignment-info option. More accurately, a zero-length string with the newline character output for 2 of five test sentences. I got sidetracked and never followed up and never shared the models.

I experienced these results just after I implemented/used the compact phrase-table. Is it possible that this is another issue with compact format? Sorry, but I don't have the examples anymore.

Tom

Date: Fri, 29 May 2015 01:45:47 +0200
From: Marcin Junczys-Dowmunt<[email protected]>
Subject: Re: [Moses-support] placeholder error with compact phrase-table
To:[email protected]
Message-ID:<[email protected]>
Content-Type: text/plain; charset="windows-1252"

Hi,
Oops, missed that post, should set-up some filter based on "compact".
Looks like another alignment-based error in my pt.  I never used place
holders before, so I never came across this. Can you somehow share stuff
so I can reproduce this?
Best,
Marcin

W dniu 29.05.2015 o 01:40, Hieu Hoang pisze:
The placeholders need word alignment info to work. What is the exact
command u used to binarise? Are you sure the text pt had alignment info?

On 27 May 2015 12:35, "Vito Mandorino"
<[email protected] <mailto:[email protected]>> wrote:

     Dear all,

     I'm getting some troubles when using placeholders together with
     compact phrase table.
     If I decode the segment

         usd <ne translation="@num@" entity="717">@num@</ne> mn worth
         of stocks


     with compact phrase table I get the error

         Line 0: Search took 0.108 seconds
         terminate called after throwing an instance of 'util::Exception'
           what():  moses/IOWrapper.cpp:273 in std::map<long unsigned
         int, const Moses::Factor*>
         Moses::IOWrapper::GetPlaceholders(const Moses::Hypothesis&,
         Moses::FactorType) threw util::Exception because
         `targetPos.size() != 1'.
         Placeholder should be aligned to 1, and only 1, word



     four times out of 13 different compactifications of the phrase
     table (the remaining 9 work fine). If I decode with non-compact
     phrase-table everything works fine. What could be the reason of
     the error? Is it possible that this is due to small random
     information losses when creating the compact tables?

     Thank you and best regards,

     Vito Mandorino

     --
     *M**. Vito MANDORINO -- Chief Scientist*

     Description : Description : lingua_custodia_final full logo

     */The Translation Trustee/*

     *1, Place Charles de Gaulle, **78180 Montigny-le-Bretonneux*

     *Tel : +33 1 30 44 04 23  Mobile : +33 6 84 65 68 89
     <tel:%2B33%206%2084%2065%2068%2089>*

     *Email :****[email protected]
     <mailto:[email protected]>***

     *Website :****www.linguacustodia.com
     <http://www.linguacustodia.com/>  -www.thetranslationtrustee.com
     <http://www.thetranslationtrustee.com/>*


     _______________________________________________
     Moses-support mailing list
     [email protected]  <mailto:[email protected]>
     http://mailman.mit.edu/mailman/listinfo/moses-support



_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support


-------- Forwarded Message --------
Subject:        Re: [Moses-support] -print-alignment-info option
Date:   Mon, 16 Mar 2015 16:58:46 +0000
From:   Hieu Hoang <[email protected]>
To:     Tom Hoar <[email protected]>
CC:     moses-support <[email protected]>



You're saying it gives a different translation depending on whether -print-alignment-info is used or not? That would be a very strange behaviour. Which phrase-table are you using?

If you can share your model files, i'll take a look at it.

Hieu Hoang
Research Associate (until March 2015)
University of Edinburgh
http://www.hoang.co.uk/hieu

On 16 March 2015 at 02:53, Tom Hoar <[email protected] <mailto:[email protected]>> wrote:

    This is my first time using the '-print-alignment-info' option and I'm
    getting some unexpected results.

    In a set of five sentences, when using no option or
    '-report-segmentation' or '-report-segmentation-enriched', all five
    sentence translations are output with respective alignment info. With
    the '-print-alignment-info' option, two sentence translations are
    output
    as zero-length strings.

    Is this what is meant when the help prompt says: "Word-to-word
    alignments are taken from the phrase table if any"?

    When no word-to-word alignment info is in the phrase table, I would
    expect the translated output followed by " ||| " and then nothing.

    Thanks.

    _______________________________________________
    Moses-support mailing list
    [email protected] <mailto:[email protected]>
    http://mailman.mit.edu/mailman/listinfo/moses-support



--

Best regards,
Tom Hoar
Chief Executive Officer
*Precision Translation Tools Pte Ltd*
Singapore/Thailand
Web: www.precisiontranslationtools.com <http://www.precisiontranslationtools.com>
Thailand Mobile: +66 87 345-1875
Skype: tahoar



_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to