Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2015-01-14 14:07:42 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-01-14 14:07:42 +0300
commit05ead45e71916c5763c5c4b6375e2ca6838f3995 (patch)
treec279bd4aacfb31758720ffbaf5aaf62022574a52 /moses/BaseManager.h
parent91cb549ccf09fc33122f3d531f47c38ad0e99b3d (diff)
beautify
Diffstat (limited to 'moses/BaseManager.h')
-rw-r--r--moses/BaseManager.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/moses/BaseManager.h b/moses/BaseManager.h
index fe88d6412..c0b6d22c1 100644
--- a/moses/BaseManager.h
+++ b/moses/BaseManager.h
@@ -17,23 +17,22 @@ protected:
const InputType &m_source; /**< source sentence to be translated */
BaseManager(const InputType &source)
- :m_source(source)
- {}
+ :m_source(source) {
+ }
// output
typedef std::vector<std::pair<Moses::Word, Moses::WordsRange> > ApplicationContext;
typedef std::set< std::pair<size_t, size_t> > Alignments;
void OutputSurface(std::ostream &out,
- const Phrase &phrase,
- const std::vector<FactorType> &outputFactorOrder,
- bool reportAllFactors) const;
+ const Phrase &phrase,
+ const std::vector<FactorType> &outputFactorOrder,
+ bool reportAllFactors) const;
void WriteApplicationContext(std::ostream &out,
- const ApplicationContext &context) const;
+ const ApplicationContext &context) const;
template <class T>
- void ShiftOffsets(std::vector<T> &offsets, T shift) const
- {
+ void ShiftOffsets(std::vector<T> &offsets, T shift) const {
T currPos = shift;
for (size_t i = 0; i < offsets.size(); ++i) {
if (offsets[i] == 0) {
@@ -46,8 +45,8 @@ protected:
}
public:
- virtual ~BaseManager()
- {}
+ virtual ~BaseManager() {
+ }
//! the input sentence being decoded
const InputType& GetSource() const {