Moses-support Digest, Vol 124, 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. Access to Key-Value Pairs in Phrase Table? (Shuoyang Ding)


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

Message: 1
Date: Sat, 25 Feb 2017 18:22:37 -0500
From: Shuoyang Ding <mtsding@gmail.com>
Subject: [Moses-support] Access to Key-Value Pairs in Phrase Table?
To: moses-support <moses-support@mit.edu>
Message-ID: <D54F137E-0BA5-4C9B-B309-98E9C70E113A@gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi All,

In http://www.statmt.org/moses/?n=FactoredTraining.ScorePhrases <http://www.statmt.org/moses/?n=FactoredTraining.ScorePhrases>, it was mentioned that there is a key-value pair field at the end of each entry of the phrase table. Now I have a phrase table that looks like the following:

, [X] ||| to the outside world [PP] ||| 0.00202802 0.0962381 1.14287e-06 7.14872e-10 0.00284822 0.367879 ||| 0-0 ||| 6 10647 1 ||| ||| {{Tree [PP [TO to] [NP [DT the] [JJ outside] [NN world]]]}}

where the last field looks like the key-value pair field as described.

My question is the following:

1. how can I get access to the contents in this field? e.g. suppose tp is a TargetPhrase instance, is tp->GetProperty(?Tree?) the right way to do it?
2. is the content of this field always loaded when initializing the decoder?

Thanks!

Regards,
Shuoyang Ding

Ph.D. Student
Center for Language and Speech Processing
Department of Computer Science
Johns Hopkins University

Hackerman Hall 225A
3400 N. Charles St.
Baltimore, MD 21218

http://cs.jhu.edu/~sding

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

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

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


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

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

Post a Comment