mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-10-27 03:49:57 +03:00
Formatting.
This commit is contained in:
parent
d94bc5df4c
commit
8e9b93c0ce
@ -20,8 +20,15 @@
|
||||
namespace sapt
|
||||
{
|
||||
|
||||
enum sampling_method { full_coverage, random_sampling, ranked_sampling, ranked_sampling2 };
|
||||
|
||||
enum
|
||||
sampling_method
|
||||
{
|
||||
full_coverage,
|
||||
random_sampling,
|
||||
ranked_sampling,
|
||||
ranked_sampling2
|
||||
};
|
||||
|
||||
typedef ttrack::Position TokenPosition;
|
||||
class CandidateSorter
|
||||
{
|
||||
|
@ -89,9 +89,9 @@ namespace sapt
|
||||
p2 = 0;
|
||||
if (ps)
|
||||
{
|
||||
raw1 = ps->raw_cnt;
|
||||
sample1 = ps->sample_cnt;
|
||||
good1 = ps->good;
|
||||
raw1 = ps->raw_cnt;
|
||||
sample1 = ps->sample_cnt;
|
||||
good1 = ps->good;
|
||||
}
|
||||
else raw1 = sample1 = good1 = 0;
|
||||
joint = 0;
|
||||
@ -127,11 +127,11 @@ namespace sapt
|
||||
// should we do that here or leave the raw counts?
|
||||
for (int i = 0; i <= LRModel::NONE; i++)
|
||||
{
|
||||
PhraseOrientation po = static_cast<PhraseOrientation>(i);
|
||||
dfwd[i] = js.dcnt_fwd(po);
|
||||
dbwd[i] = js.dcnt_bwd(po);
|
||||
PhraseOrientation po = static_cast<PhraseOrientation>(i);
|
||||
dfwd[i] = js.dcnt_fwd(po);
|
||||
dbwd[i] = js.dcnt_bwd(po);
|
||||
}
|
||||
|
||||
|
||||
indoc = js.indoc;
|
||||
return *this;
|
||||
}
|
||||
@ -282,8 +282,8 @@ namespace sapt
|
||||
size_t offset;
|
||||
if (dir == LRModel::Bidirectional)
|
||||
{
|
||||
offset = num_scores;
|
||||
num_scores *= 2;
|
||||
offset = num_scores;
|
||||
num_scores *= 2;
|
||||
}
|
||||
else offset = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user