Moses-support Digest, Vol 101, Issue 47

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: How to install GhostView tool for EMS (Philipp Koehn)
2. Re: Questions about kbmira code in Moses (Barry Haddow)


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

Message: 1
Date: Fri, 13 Mar 2015 11:56:09 -0400
From: Philipp Koehn <phi@jhu.edu>
Subject: Re: [Moses-support] How to install GhostView tool for EMS
To: "Asad A.Malik" <asad_12204@yahoo.com>
Cc: Moses-support Support <moses-support@mit.edu>, Hieu Hoang
<hieu.hoang@ed.ac.uk>
Message-ID:
<CAAFADDBgwy6p9f=gERei0E0tvd561MaRuvmcfY2JFEXSJ8ccZQ@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

Hi,

check out this:
http://pages.cs.wisc.edu/~ghost/

GhostView is not strictly needed. It is just there to show the step
workflow on the screen. You can use any other program to display it by
changing the lines 164-174 (there actually already seems to be a
backoff to "display").

-phi

On Thu, Mar 12, 2015 at 11:45 AM, Asad A.Malik <asad_12204@yahoo.com> wrote:
> Hi All,
>
> I am trying to use EMS and for that I have to fulfill the requirements. I've
> installed SRILM, Graphviz & ImageMagick, but now I am unable to install the
> GhostView tool. I've gone through their documentation but I am not
> understanding that how can I install it. I'm searching for it from multiple
> days but still I am unable to find any thing useful.
>
> I'll really appricate if any one can guide me
>
> --
>
> Kind Regards,
>
> Mr. Asad Abdul Malik


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

Message: 2
Date: Fri, 13 Mar 2015 16:09:02 +0000
From: Barry Haddow <bhaddow@staffmail.ed.ac.uk>
Subject: Re: [Moses-support] Questions about kbmira code in Moses
To: Liangyou Li <llysuda@gmail.com>, moses-support@mit.edu
Message-ID: <55030B9E.40902@staffmail.ed.ac.uk>
Content-Type: text/plain; charset=UTF-8; format=flowed

Hi Liangyou

I looked into this a bit, and I think that ToSparse() should indeed be
fixed along the lines you suggest. This would mean that hypergraph mira
is currently broken for sparse features, although I don't think kbmira
is affected.

I'm quite busy at the moment, but I'll do some more testing and check in
a fix as soon as I can - in the next week or two,

cheers - Barry

On 06/03/15 15:43, Liangyou Li wrote:
> I have a question about the function :
> MiraWeightVector.ToSparse(SparseVector* sparse) .
>
> It's defined as this:
>
> void MiraWeightVector::ToSparse(SparseVector* sparse) const
> {
> for (size_t i = 0; i < m_weights.size(); ++i) {
> if(abs(m_weights[i])>1e-8) {
> sparse->set(i,m_weights[i]);
> }
> }
> }
>
> This means the same index i is used for both SparseVector and
> MiraWeightVector.
> However, according to the code in kbmira.cpp, there's a gap between
> the indexes.
>
> for dense feature: size_t id = SparseVector::encode(names[i]);
> then, for sparse feature: size_t id = SparseVector::encode(name)
> + initDenseSize;
>
>
> ?Why isn't the ToSparse function looks like this:
>
> void MiraWeightVector::ToSparse(SparseVector* sparse, size_t
> denseSize) const
> {
> for (size_t i = 0; i < m_weights.size(); ++i) {
> if (i < denseSize) {
> sparse->set(i,m_weights[i]);
> } else {
> if(abs(m_weights[i])>1e-8) {
> sparse->set(i-denseSize,m_weights[i]);
> }
> }
> }
> }
>
> I'm kind of confused, did I miss something ?
> Many thanks.
>
> Liangyou
>
> --
>
> Liangyou Li
> CNGL
> School of Computing
> Dublin City University
>
>
>
> _______________________________________________
> Moses-support mailing list
> Moses-support@mit.edu
> http://mailman.mit.edu/mailman/listinfo/moses-support


--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.



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

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


End of Moses-support Digest, Vol 101, Issue 47
**********************************************

Related Posts :

0 Response to "Moses-support Digest, Vol 101, Issue 47"

Post a Comment