diff options
author | Hieu Hoang <fishandfrolick@gmail.com> | 2012-06-29 07:19:28 +0400 |
---|---|---|
committer | Hieu Hoang <fishandfrolick@gmail.com> | 2012-06-29 07:19:28 +0400 |
commit | b1ce27d01f2629749deb9cb48f218246be6eca28 (patch) | |
tree | 705456124a4a745e1b667a96845b4827127eb57d /moses-cmd | |
parent | 85624125ce06e9a90ec35734807f64f120f9a78a (diff) |
commented all classes in OnDiskPt and moses-cmd
Diffstat (limited to 'moses-cmd')
-rw-r--r-- | moses-cmd/src/IOWrapper.cpp | 2 | ||||
-rw-r--r-- | moses-cmd/src/IOWrapper.h | 4 | ||||
-rw-r--r-- | moses-cmd/src/Main.cpp | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/moses-cmd/src/IOWrapper.cpp b/moses-cmd/src/IOWrapper.cpp index 4134db86a..cc5835917 100644 --- a/moses-cmd/src/IOWrapper.cpp +++ b/moses-cmd/src/IOWrapper.cpp @@ -543,7 +543,7 @@ bool ReadInput(IOWrapper &ioWrapper, InputTypeEnum inputType, InputType*& source -IOWrapper *GetIODevice(const StaticData &staticData) +IOWrapper *GetIOWrapper(const StaticData &staticData) { IOWrapper *ioWrapper; const std::vector<FactorType> &inputFactorOrder = staticData.GetInputFactorOrder() diff --git a/moses-cmd/src/IOWrapper.h b/moses-cmd/src/IOWrapper.h index 83c428d47..8d439433f 100644 --- a/moses-cmd/src/IOWrapper.h +++ b/moses-cmd/src/IOWrapper.h @@ -53,6 +53,8 @@ POSSIBILITY OF SUCH DAMAGE. #include "WordLattice.h" #include "LatticeMBR.h" +/** Helper class that holds misc variables to write data out to command line. + */ class IOWrapper { protected: @@ -118,7 +120,7 @@ public: } }; -IOWrapper *GetIODevice(const Moses::StaticData &staticData); +IOWrapper *GetIOWrapper(const Moses::StaticData &staticData); bool ReadInput(IOWrapper &ioWrapper, Moses::InputTypeEnum inputType, Moses::InputType*& source); void OutputBestSurface(std::ostream &out, const Moses::Hypothesis *hypo, const std::vector<Moses::FactorType> &outputFactorOrder, bool reportSegmentation, bool reportAllFactors); void OutputNBest(std::ostream& out, const Moses::TrellisPathList &nBestList, const std::vector<Moses::FactorType>&, diff --git a/moses-cmd/src/Main.cpp b/moses-cmd/src/Main.cpp index 66fba54a3..1469b8389 100644 --- a/moses-cmd/src/Main.cpp +++ b/moses-cmd/src/Main.cpp @@ -372,7 +372,7 @@ int main(int argc, char** argv) srand(time(NULL)); // set up read/writing class - IOWrapper* ioWrapper = GetIODevice(staticData); + IOWrapper* ioWrapper = GetIOWrapper(staticData); if (!ioWrapper) { cerr << "Error; Failed to create IO object" << endl; exit(1); |