mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-06 19:49:41 +03:00
27 lines
458 B
C++
27 lines
458 B
C++
#pragma once
|
|
#include "../PhraseImplTemplate.h"
|
|
#include "../SubPhrase.h"
|
|
#include "Word.h"
|
|
|
|
namespace Moses2
|
|
{
|
|
namespace SCFG
|
|
{
|
|
|
|
class PhraseImpl: public PhraseImplTemplate<SCFG::Word>
|
|
{
|
|
public:
|
|
static PhraseImpl *CreateFromString(MemPool &pool, FactorCollection &vocab,
|
|
const System &system, const std::string &str, bool skipLastWord = true);
|
|
|
|
PhraseImpl(MemPool &pool, size_t size) :
|
|
PhraseImplTemplate<Word>(pool, size)
|
|
{
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
}
|
|
|