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:
authorUlrich Germann <ugermann@inf.ed.ac.uk>2015-07-03 01:49:00 +0300
committerUlrich Germann <ugermann@inf.ed.ac.uk>2015-07-03 01:49:00 +0300
commit64ec34df5d427ead0e2281d45bae5891c0adb786 (patch)
tree77cc63d9b5b98307f4fbbf3e8bfcb07f0c011d8e
parent65bd46df65910d673ed49c9a7551d472e8127039 (diff)
Proper indentation with spaces (no tabs).
-rw-r--r--moses/TranslationModel/UG/mm/ug_prep_phrases.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/moses/TranslationModel/UG/mm/ug_prep_phrases.h b/moses/TranslationModel/UG/mm/ug_prep_phrases.h
index 421d6f090..93a5ea82a 100644
--- a/moses/TranslationModel/UG/mm/ug_prep_phrases.h
+++ b/moses/TranslationModel/UG/mm/ug_prep_phrases.h
@@ -46,32 +46,32 @@ struct StatsCollector
if (!lcache) lcache.reset(new lcache_t);
if (m.down())
{
- do
- {
- if (!r.extend(m.getToken(-1)->id())) continue;
- this->process(m, r);
- uint64_t pid = r.getPid();
- sptr<pstats> stats;
- if (hcache) stats = hcache->get(pid);
- if (!stats && pcache)
- {
- sptr<pstats> const* foo = pcache->get(pid);
- if (foo) stats = *foo;
- }
- if (!stats) // need to sample
- {
- BitextSampler<Token> s(bitext.get(), r, bias, sample_size, method);
- stats = s.stats();
- if (hcache) hcache->set(pid,stats);
- if (pcache && r.ca() >= pcache_th) pcache->set(pid,stats);
- if (tpool) tpool->add(s);
- else s();
- }
- (*lcache)[pid] = stats;
- r.up();
- }
- while (m.over());
- m.up();
+ do
+ {
+ if (!r.extend(m.getToken(-1)->id())) continue;
+ this->process(m, r);
+ uint64_t pid = r.getPid();
+ sptr<pstats> stats;
+ if (hcache) stats = hcache->get(pid);
+ if (!stats && pcache)
+ {
+ sptr<pstats> const* foo = pcache->get(pid);
+ if (foo) stats = *foo;
+ }
+ if (!stats) // need to sample
+ {
+ BitextSampler<Token> s(bitext.get(), r, bias, sample_size, method);
+ stats = s.stats();
+ if (hcache) hcache->set(pid,stats);
+ if (pcache && r.ca() >= pcache_th) pcache->set(pid,stats);
+ if (tpool) tpool->add(s);
+ else s();
+ }
+ (*lcache)[pid] = stats;
+ r.up();
+ }
+ while (m.over());
+ m.up();
}
}
};