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 <fishandfrolick@gmail.com>2013-06-10 21:11:55 +0400
committerHieu Hoang <fishandfrolick@gmail.com>2013-06-10 21:11:55 +0400
commitabe6bb7c2257cce6ed746e54fdd97fbf1f1ef3aa (patch)
tree5cff23f9434a2bd500ee55c4839e753cc119388c /OnDiskPt
parent96d116dba09f4c29fbbfa1edd3d52a31a4b74b49 (diff)
refactor parsing of feature functiona args
Diffstat (limited to 'OnDiskPt')
-rw-r--r--OnDiskPt/Phrase.h4
-rw-r--r--OnDiskPt/TargetPhrase.h4
-rw-r--r--OnDiskPt/Vocab.h4
-rw-r--r--OnDiskPt/Word.h8
4 files changed, 10 insertions, 10 deletions
diff --git a/OnDiskPt/Phrase.h b/OnDiskPt/Phrase.h
index a2f049afe..ef5c59e16 100644
--- a/OnDiskPt/Phrase.h
+++ b/OnDiskPt/Phrase.h
@@ -38,8 +38,8 @@ protected:
std::vector<WordPtr> m_words;
public:
- Phrase()
- {}
+ Phrase() {
+ }
virtual ~Phrase() {}
diff --git a/OnDiskPt/TargetPhrase.h b/OnDiskPt/TargetPhrase.h
index c4bb40454..a73ab75e1 100644
--- a/OnDiskPt/TargetPhrase.h
+++ b/OnDiskPt/TargetPhrase.h
@@ -61,8 +61,8 @@ protected:
UINT64 ReadScoresFromFile(std::fstream &fileTPColl);
public:
- TargetPhrase()
- {}
+ TargetPhrase() {
+ }
TargetPhrase(size_t numScores);
TargetPhrase(const TargetPhrase &copy);
virtual ~TargetPhrase();
diff --git a/OnDiskPt/Vocab.h b/OnDiskPt/Vocab.h
index 0509f8ae3..2adbf16f2 100644
--- a/OnDiskPt/Vocab.h
+++ b/OnDiskPt/Vocab.h
@@ -42,8 +42,8 @@ protected:
public:
Vocab()
- :m_nextId(1)
- {}
+ :m_nextId(1) {
+ }
UINT64 AddVocabId(const std::string &str);
UINT64 GetVocabId(const std::string &str, bool &found) const;
const std::string &GetString(UINT32 vocabId) const {
diff --git a/OnDiskPt/Word.h b/OnDiskPt/Word.h
index 254959737..53253fa24 100644
--- a/OnDiskPt/Word.h
+++ b/OnDiskPt/Word.h
@@ -46,13 +46,13 @@ private:
UINT64 m_vocabId;
public:
- explicit Word()
- {}
+ explicit Word() {
+ }
explicit Word(bool isNonTerminal)
:m_isNonTerminal(isNonTerminal)
- ,m_vocabId(0)
- {}
+ ,m_vocabId(0) {
+ }
Word(const Word &copy);
~Word();