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:
Diffstat (limited to 'moses/TranslationModel/ProbingPT/StoreVocab.h')
-rw-r--r--moses/TranslationModel/ProbingPT/StoreVocab.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/moses/TranslationModel/ProbingPT/StoreVocab.h b/moses/TranslationModel/ProbingPT/StoreVocab.h
index 05d279f4c..806dcebf4 100644
--- a/moses/TranslationModel/ProbingPT/StoreVocab.h
+++ b/moses/TranslationModel/ProbingPT/StoreVocab.h
@@ -24,31 +24,27 @@ protected:
public:
StoreVocab(const std::string &path)
- :m_path(path)
+ :m_path(path)
{}
virtual ~StoreVocab() {}
- VOCABID GetVocabId(const std::string &word)
- {
+ VOCABID GetVocabId(const std::string &word) {
typename Coll::iterator iter = m_vocab.find(word);
if (iter == m_vocab.end()) {
VOCABID ind = m_vocab.size() + 1;
m_vocab[word] = ind;
return ind;
- }
- else {
+ } else {
return iter->second;
}
}
- void Insert(VOCABID id, const std::string &word)
- {
+ void Insert(VOCABID id, const std::string &word) {
m_vocab[word] = id;
}
- void Save()
- {
+ void Save() {
OutputFileStream strme(m_path);
typename Coll::const_iterator iter;