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
path: root/moses2/FF
diff options
context:
space:
mode:
authorsid jain <sija@microsoft.com>2020-10-02 21:13:38 +0300
committersid jain <sija@microsoft.com>2020-10-02 21:13:38 +0300
commit125f33fa68f2d68b256c065a9e6013b6c16dad18 (patch)
tree0f9546ee21bb7cbe38a5af6657e5b38847ae5762 /moses2/FF
parent4c7469dda102a4811aedf2ed0875f976728b2c7b (diff)
parenta269d24db253ea54a8c67c4d36d68d1ff7932c8b (diff)
sMerge branch 'master' of https://machinetranslation.visualstudio.com/DefaultCollection/moses-mstranslator/_git/moses-mstranslator
Diffstat (limited to 'moses2/FF')
-rw-r--r--moses2/FF/FeatureFunction.h2
-rw-r--r--moses2/FF/FeatureFunctions.cpp4
-rw-r--r--moses2/FF/FeatureFunctions.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/moses2/FF/FeatureFunction.h b/moses2/FF/FeatureFunction.h
index fa0f1fbe9..34742efb1 100644
--- a/moses2/FF/FeatureFunction.h
+++ b/moses2/FF/FeatureFunction.h
@@ -99,7 +99,7 @@ public:
virtual void InitializeForInput(const InputType &input) { };
// clean up temporary memory, called after processing each sentence
- virtual void CleanUpAfterSentenceProcessing() const {
+ virtual void CleanUpAfterSentenceProcessing(const InputType &input) const {
}
protected:
diff --git a/moses2/FF/FeatureFunctions.cpp b/moses2/FF/FeatureFunctions.cpp
index 12cdd8d24..efe018b7b 100644
--- a/moses2/FF/FeatureFunctions.cpp
+++ b/moses2/FF/FeatureFunctions.cpp
@@ -236,10 +236,10 @@ void FeatureFunctions::InitializeForInput(const InputType &input)
}
}
-void FeatureFunctions::CleanUpAfterSentenceProcessing() const
+void FeatureFunctions::CleanUpAfterSentenceProcessing(const InputType &input) const
{
BOOST_FOREACH(const FeatureFunction *ff, m_featureFunctions) {
- ff->CleanUpAfterSentenceProcessing();
+ ff->CleanUpAfterSentenceProcessing(input);
}
}
diff --git a/moses2/FF/FeatureFunctions.h b/moses2/FF/FeatureFunctions.h
index 6714d57cc..4c15d674a 100644
--- a/moses2/FF/FeatureFunctions.h
+++ b/moses2/FF/FeatureFunctions.h
@@ -88,7 +88,7 @@ public:
void EvaluateWhenAppliedBatch(const Batch &batch) const;
void InitializeForInput(const InputType &input);
- void CleanUpAfterSentenceProcessing() const;
+ void CleanUpAfterSentenceProcessing(const InputType &input) const;
void ShowWeights(const Weights &allWeights);