mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-29 06:52:34 +03:00
9e88f794e6
This performs some minor transformations to Egret forests: escaping of Moses special characters; removal of "^g" suffixes from constituent labels; and marking of slash/hyphen split points (using @ characters).
14 lines
320 B
C++
14 lines
320 B
C++
#include "PostprocessEgretForests.h"
|
|
|
|
#include "syntax-common/exception.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
MosesTraining::Syntax::PostprocessEgretForests::PostprocessEgretForests tool;
|
|
try {
|
|
return tool.Main(argc, argv);
|
|
} catch (const MosesTraining::Syntax::Exception &e) {
|
|
tool.Error(e.msg());
|
|
}
|
|
}
|