mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-10-27 03:49:57 +03:00
ac8f01bc3d
Implements search algorithms 7, 8, and 9: -search-algorithm 7 tree-to-string (STSG-based, currently a special-case of forest-to-string) -search-algorithm 8 tree-to-string (SCFG-based) -search-algorithm 9 forest-to-string (STSG-based)
20 lines
298 B
C++
20 lines
298 B
C++
#pragma once
|
|
|
|
#include "moses/Syntax/F2S/Forest.h"
|
|
|
|
#include "InputTree.h"
|
|
|
|
namespace Moses
|
|
{
|
|
namespace Syntax
|
|
{
|
|
namespace T2S
|
|
{
|
|
|
|
// Constructs a F2S::Forest given a T2S::InputTree.
|
|
const F2S::Forest::Vertex *InputTreeToForest(const InputTree &, F2S::Forest &);
|
|
|
|
} // T2S
|
|
} // Syntax
|
|
} // Moses
|