Moses-support Digest, Vol 101, Issue 78

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. bug in analysis.perl? (Shuoyang Ding)


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

Message: 1
Date: Sun, 29 Mar 2015 18:59:40 -0400
From: Shuoyang Ding <mtsding@gmail.com>
Subject: [Moses-support] bug in analysis.perl?
To: moses-support@mit.edu
Message-ID: <E8C6B7A2-9450-45C9-B746-21C565B18D66@gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi all,

I just upgraded from an older release (2.1.1) to the current version of moses. And I found the regular expression in line 780-781 and in line 1198-1204 of /scripts/ems/support/analysis.perl does not match the .trace and .graph files, respectively.

The .trace file I get is something like this:

Trans Opt 0 [0..12]: [12..12]=</s> [0..11]=S : S ->S -> S </s> :0-0 : term=1-1 : nonterm=0-0 : c=-0.219483 core=(0,-1,1,0,0,0,0,0,0,0) -210.72core=(-100,-22,14,-20.8622,-22.1086,-15.6026,-26.7554,-2.71614,0.999896,-101.045)

the .graph file:

0 40079 S => S -> <s> :: term=0-0 : nonterm=: c=0.110587 core=(0,-1,1,0,0,0,0,0,0,0) [0..0] [total=0.110587] core=(0,-1,1,0,0,0,0,0,0,0)

namely, the original regular expression seems fail to account for the ?term? and ?nonterm? stuff in both cases.

I attempted to fix the problem and I attached the fixed analysis.perl. I no longer get the error output again but I don?t know if it is the right way to do this, so I think it would be nice if some of you can look at that.

Plus, I?m a bit puzzled by the ?old format? and ?new format? indicated in function hs_scan_line. It seems that my experiment is matching to the ?old format?, so is this old one deprecated? How can I switch to the new one?

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 <http://cs.jhu.edu/~sding>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20150329/f321c687/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: analysis.perl
Type: application/octet-stream
Size: 39846 bytes
Desc: not available
Url : http://mailman.mit.edu/mailman/private/moses-support/attachments/20150329/f321c687/attachment.obj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20150329/f321c687/attachment-0001.htm

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

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


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

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

Post a Comment