mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 05:55:02 +03:00
Merge branch 'master' of ssh://github.com/moses-smt/mosesdecoder
This commit is contained in:
commit
0c6e73f40f
@ -301,6 +301,7 @@ int main(int argc, char* argv[])
|
||||
#endif
|
||||
|
||||
delete ioWrapper;
|
||||
FeatureFunction::Destroy();
|
||||
|
||||
IFVERBOSE(1)
|
||||
PrintUserTime("End.");
|
||||
|
@ -755,6 +755,7 @@ int main(int argc, char** argv)
|
||||
#endif
|
||||
|
||||
delete ioWrapper;
|
||||
FeatureFunction::Destroy();
|
||||
|
||||
} catch (const std::exception &e) {
|
||||
std::cerr << "Exception: " << e.what() << std::endl;
|
||||
|
@ -6,6 +6,7 @@
|
||||
#include "moses/Hypothesis.h"
|
||||
#include "moses/Manager.h"
|
||||
#include "moses/TranslationOption.h"
|
||||
#include "moses/Util.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
@ -28,6 +29,11 @@ FeatureFunction &FeatureFunction::FindFeatureFunction(const std::string& name)
|
||||
throw "Unknown feature " + name;
|
||||
}
|
||||
|
||||
void FeatureFunction::Destroy()
|
||||
{
|
||||
RemoveAllInColl(s_staticColl);
|
||||
}
|
||||
|
||||
FeatureFunction::
|
||||
FeatureFunction(const std::string& line)
|
||||
: m_tuneable(true)
|
||||
|
@ -44,6 +44,7 @@ public:
|
||||
return s_staticColl;
|
||||
}
|
||||
static FeatureFunction &FindFeatureFunction(const std::string& name);
|
||||
static void Destroy();
|
||||
|
||||
FeatureFunction(const std::string &line);
|
||||
FeatureFunction(size_t numScoreComponents, const std::string &line);
|
||||
|
Loading…
Reference in New Issue
Block a user