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. Decoding exception and solution: Incorrect formatting of
non-terminal (Jonathan Chen)
----------------------------------------------------------------------
Message: 1
Date: Sat, 21 May 2016 09:23:35 -0500
From: Jonathan Chen <jchen45@hotmail.com>
Subject: [Moses-support] Decoding exception and solution: Incorrect
formatting of non-terminal
To: "moses-support@mit.edu" <moses-support@mit.edu>
Message-ID: <BAY182-W3CF8441A35A44A631113FA44C0@phx.gbl>
Content-Type: text/plain; charset="iso-8859-1"
I thought I'd share an error message I've been getting for a while, and the solution I just figured out.
Exception: moses/Phrase.cpp:219 in void Moses::Phrase::CreateFromString(Moses::FactorDirection, const std::vector<long unsigned int>&, const StringPiece&, Moses::Word**) threw util::Exception because `nextPos == string::npos'.
Incorrect formatting of non-terminal. Should have 2 non-terms, eg. [X][X]. Current string: []
This was confusing, because I was just working with the default factor settings and did not enable any optional tree-based factors. It turns out that the exception in my case was just being caused by a literal "[]" in my test corpus.
-Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20160521/d8eed1ac/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 115, Issue 24
**********************************************
Subscribe to:
Post Comments (Atom)
0 Response to "Moses-support Digest, Vol 115, Issue 24"
Post a Comment