mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 05:14:36 +03:00
Moses, the machine translation system
63effe85b5
1) Stateless feature functions from the phrase table/generation table: these are computed when the TranslationOption is created. They become part of the ScoreBreakdown object contained in the TranslationOption and are added to the feature value vector when a hypothesis is extended. 2) Stateless feature functions that are computed during state exploration. Currently, only WordPenalty falls into this category, but these functions implement a method Evaluate which do does not receive a Hypothesis or any contextual information. 3) Stateful feature functions: these features receive the arc information (translation option), compute some value and then return some context information. The context information created by a particular feature function is passed back to it as the previous context when a hypothesis originating at the node where the previous edge terminates is created. States in the search space may be recombined if the context information is identical. The context information must be stored in an object implementing the FFState interface. TODO: 1) the command line interface / MERT interface needs to go to named parameters that are otherwise opaque 2) StatefulFeatureFunction's Evaluate method should just take a TranslationOption and a context object. It is not good that it takes a hypothesis, because then people may be tempted to access information about the "previous" hypothesis without "declaring" this dependency. 3) Future cost estimates should be handled using feature functions. All stateful feature functions need some kind of future cost estimate. 4) Philipp's poor-man's cube pruning is broken. git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@2087 1f5c12ca-751b-0410-a591-d2e778427230 |
||
---|---|---|
hypergraph-prototype/attempt1 | ||
lmserver | ||
mert | ||
misc | ||
moses | ||
moses-cmd | ||
regression-testing | ||
report | ||
reranking | ||
scripts | ||
sigtest-filter | ||
web | ||
BUILD-INSTRUCTIONS.txt | ||
config.h.in | ||
configure.in | ||
depcomp | ||
install-sh | ||
ltmain.sh | ||
make-release-tarball.sh | ||
Makefile.am | ||
missing | ||
mkinstalldirs | ||
moses.sln | ||
regenerate-makefiles.sh | ||
validate_more_revisions.sh | ||
validate_revision.sh |