2014-12-02 20:10:20 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2014-12-07 17:27:51 +03:00
|
|
|
namespace MosesTraining
|
|
|
|
{
|
|
|
|
namespace Syntax
|
2014-12-02 20:10:20 +03:00
|
|
|
{
|
|
|
|
namespace ScoreStsg
|
|
|
|
{
|
|
|
|
|
|
|
|
struct Options {
|
|
|
|
public:
|
|
|
|
Options()
|
|
|
|
: goodTuring(false)
|
|
|
|
, inverse(false)
|
|
|
|
, kneserNey(false)
|
|
|
|
, logProb(false)
|
|
|
|
, minCountHierarchical(0)
|
|
|
|
, negLogProb(false)
|
|
|
|
, noLex(false)
|
|
|
|
, noWordAlignment(false)
|
2014-12-30 21:57:23 +03:00
|
|
|
, treeScore(false) {}
|
2014-12-02 20:10:20 +03:00
|
|
|
|
|
|
|
// Positional options
|
|
|
|
std::string extractFile;
|
|
|
|
std::string lexFile;
|
|
|
|
std::string tableFile;
|
|
|
|
|
|
|
|
// All other options
|
|
|
|
bool goodTuring;
|
|
|
|
bool inverse;
|
|
|
|
bool kneserNey;
|
|
|
|
bool logProb;
|
|
|
|
int minCountHierarchical;
|
|
|
|
bool negLogProb;
|
|
|
|
bool noLex;
|
|
|
|
bool noWordAlignment;
|
2014-12-30 21:57:23 +03:00
|
|
|
bool treeScore;
|
2014-12-02 20:10:20 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace ScoreStsg
|
2014-12-07 17:27:51 +03:00
|
|
|
} // namespace Syntax
|
|
|
|
} // namespace MosesTraining
|