diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2014-10-09 20:28:57 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2014-10-09 20:28:57 +0400 |
commit | 89f8c7d284a3e405c5d8259cb12ba67548ea648b (patch) | |
tree | 879d5bd2963fa6a6f2ac455d4d90ebdbf80560f1 /moses-cmd | |
parent | 23d0afcde126d9b082d5450a93859670448aaef4 (diff) |
get ready to merge IOWrapper
Diffstat (limited to 'moses-cmd')
-rw-r--r-- | moses-cmd/LatticeMBRGrid.cpp | 2 | ||||
-rw-r--r-- | moses-cmd/Main.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/moses-cmd/LatticeMBRGrid.cpp b/moses-cmd/LatticeMBRGrid.cpp index 9a3ccdff0..bbf5f2a8b 100644 --- a/moses-cmd/LatticeMBRGrid.cpp +++ b/moses-cmd/LatticeMBRGrid.cpp @@ -177,7 +177,7 @@ int main(int argc, char* argv[]) const vector<float>& prune_grid = grid.getGrid(lmbr_prune); const vector<float>& scale_grid = grid.getGrid(lmbr_scale); - while(ReadInput(*ioWrapper,staticData.GetInputType(),source)) { + while(ioWrapper->ReadInput(*ioWrapper,staticData.GetInputType(),source)) { ++lineCount; source->SetTranslationId(lineCount); diff --git a/moses-cmd/Main.cpp b/moses-cmd/Main.cpp index 2e4a4ffdc..f7d9a44da 100644 --- a/moses-cmd/Main.cpp +++ b/moses-cmd/Main.cpp @@ -140,7 +140,7 @@ int main(int argc, char** argv) // main loop over set of input sentences InputType* source = NULL; size_t lineCount = staticData.GetStartTranslationId(); - while(ReadInput(*ioWrapper,staticData.GetInputType(),source)) { + while(ioWrapper->ReadInput(*ioWrapper,staticData.GetInputType(),source)) { source->SetTranslationId(lineCount); IFVERBOSE(1) { ResetUserTime(); |