mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-06 19:49:41 +03:00
prefix path
This commit is contained in:
parent
5ed810bf85
commit
d793b2579b
@ -20,8 +20,9 @@ void InputPaths::Init(const PhraseImpl &input, const System &system)
|
||||
{
|
||||
size_t numPt = system.mappings.size();
|
||||
size_t size = input.GetSize();
|
||||
for (size_t phaseSize = 1; phaseSize <= min(size, system.maxPhraseLength) ; ++phaseSize) {
|
||||
//for (size_t phaseSize = 1; phaseSize <= size; ++phaseSize) {
|
||||
size_t maxLength = min(size, system.maxPhraseLength);
|
||||
|
||||
for (size_t phaseSize = 1; phaseSize <= maxLength; ++phaseSize) {
|
||||
for (size_t startPos = 0; startPos < size - phaseSize + 1; ++startPos) {
|
||||
size_t endPos = startPos + phaseSize -1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user