Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'moses/src/ScoreComponentCollection.cpp')
-rw-r--r--[-rwxr-xr-x]moses/src/ScoreComponentCollection.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/moses/src/ScoreComponentCollection.cpp b/moses/src/ScoreComponentCollection.cpp
index d9638f21c..e393c3a74 100755..100644
--- a/moses/src/ScoreComponentCollection.cpp
+++ b/moses/src/ScoreComponentCollection.cpp
@@ -137,12 +137,12 @@ float ScoreComponentCollection::GetLInfNorm() const {
return m_scores.linfnorm();
}
-void ScoreComponentCollection::L1Regularize(float lambda) {
- m_scores.l1regularize(lambda);
+size_t ScoreComponentCollection::SparseL1Regularize(float lambda) {
+ return m_scores.sparseL1regularize(lambda);
}
-void ScoreComponentCollection::L2Regularize(float lambda) {
- m_scores.l2regularize(lambda);
+void ScoreComponentCollection::SparseL2Regularize(float lambda) {
+ m_scores.sparseL2regularize(lambda);
}
void ScoreComponentCollection::Save(ostream& out) const {