mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-20 07:42:21 +03:00
Cosmetic.
This commit is contained in:
parent
1ffcd17ce5
commit
342598af0c
@ -28,20 +28,10 @@ TO_STRING_BODY(WordsBitmap);
|
||||
|
||||
bool WordsBitmap::IsAdjacent(size_t startPos, size_t endPos) const
|
||||
{
|
||||
if (GetNumWordsCovered() == 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
size_t first = GetFirstGapPos();
|
||||
size_t last = GetLastGapPos();
|
||||
|
||||
if (startPos == last || endPos == first) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return
|
||||
GetNumWordsCovered() == 0 ||
|
||||
startPos == GetFirstGapPos() ||
|
||||
endPos == GetLastGapPos();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user