Moses-support Digest, Vol 92, Issue 31

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. Feature function with variable number of scores
(Marcin Junczys-Dowmunt)


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

Message: 1
Date: Sat, 14 Jun 2014 10:17:19 +0200
From: Marcin Junczys-Dowmunt <junczys@amu.edu.pl>
Subject: [Moses-support] Feature function with variable number of
scores
To: moses-support <moses-support@mit.edu>
Message-ID: <539C050F.8060006@amu.edu.pl>
Content-Type: text/plain; charset=UTF-8; format=flowed

Hi,
what's the trick for defining a feature function with a variable number
of scores based on custom parameters in the ini-file?
Just setting m_numScoreComponents = 2 in SetParameter(...) doesn't work.
It seems the number of features is registered somewhere on object
creation as I get the followiing message:

Exception: moses/ScoreComponentCollection.cpp:242 in void
Moses::ScoreComponentCollection::Assign(const Moses::FeatureFunction*,
const std::vector<float>&) threw util::Exception'.
Feature function EditOps0 specified 1 dense scores or weights. Actually
has 2

Thanks,
Marcin




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

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


End of Moses-support Digest, Vol 92, Issue 31
*********************************************

0 Response to "Moses-support Digest, Vol 92, Issue 31"

Post a Comment