mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-01 16:33:16 +03:00
Merge branch 'perf_moses2' of github.com:hieuhoang/mosesdecoder into perf_moses2
This commit is contained in:
commit
3de9f8b66c
@ -215,6 +215,7 @@ void FeatureFunctions::ShowWeights(const Weights &allWeights)
|
||||
BOOST_FOREACH(const FeatureFunction *ff, m_featureFunctions) {
|
||||
cout << ff->GetName();
|
||||
if (ff->IsTuneable()) {
|
||||
cout << "=";
|
||||
vector<SCORE> weights = allWeights.GetWeights(*ff);
|
||||
for (size_t i = 0; i < weights.size(); ++i) {
|
||||
cout << " " << weights[i];
|
||||
|
@ -238,9 +238,11 @@ void Scores::OutputBreakdown(std::ostream &out, const System &system) const
|
||||
{
|
||||
if (system.options.nbest.nbest_size) {
|
||||
BOOST_FOREACH(const FeatureFunction *ff, system.featureFunctions.GetFeatureFunctions()){
|
||||
out << ff->GetName() << "= ";
|
||||
for (size_t i = ff->GetStartInd(); i < (ff->GetStartInd() + ff->GetNumScores()); ++i) {
|
||||
out << m_scores[i] << " ";
|
||||
if (ff->IsTuneable()) {
|
||||
out << ff->GetName() << "= ";
|
||||
for (size_t i = ff->GetStartInd(); i < (ff->GetStartInd() + ff->GetNumScores()); ++i) {
|
||||
out << m_scores[i] << " ";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -27,6 +27,7 @@ namespace Moses2
|
||||
UnknownWordPenalty::UnknownWordPenalty(size_t startInd, const std::string &line) :
|
||||
PhraseTable(startInd, line)
|
||||
{
|
||||
m_tuneable = false;
|
||||
ReadParameters();
|
||||
}
|
||||
|
||||
|
@ -493,7 +493,7 @@ for ( my $i = 0 ; $i <= $#TABLE ; $i++ ) {
|
||||
if ($opt_hierarchical) {
|
||||
$cmd .= " --scfg";
|
||||
}
|
||||
print STDERR "EEEEEEEXEC: $cmd \n";
|
||||
print STDERR "Executing: $cmd \n";
|
||||
safesystem($cmd) or die "Can't binarize";
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user