mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +03:00
uninitialized variables and double include
This commit is contained in:
parent
d75c4e1ae5
commit
33992f9af5
@ -248,7 +248,7 @@ int ExtractGHKM::Main(int argc, char *argv[])
|
||||
|
||||
const std::vector<const Subgraph *> &rules = (*p)->GetRules();
|
||||
|
||||
REO_POS l2rOrientation, r2lOrientation;
|
||||
REO_POS l2rOrientation=UNKNOWN, r2lOrientation=UNKNOWN;
|
||||
if (options.phraseOrientation && !rules.empty()) {
|
||||
int sourceSpanBegin = *((*p)->GetSpan().begin());
|
||||
int sourceSpanEnd = *((*p)->GetSpan().rbegin());
|
||||
|
@ -19,11 +19,9 @@
|
||||
|
||||
#include "PhraseOrientation.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <limits>
|
||||
#include <sstream>
|
||||
|
||||
#include <boost/assign/list_of.hpp>
|
||||
|
||||
@ -189,7 +187,7 @@ const std::string PhraseOrientation::GetOrientationInfoString(int startF, int en
|
||||
|
||||
const std::string PhraseOrientation::GetOrientationInfoString(int startF, int startE, int endF, int endE, REO_DIR direction) const
|
||||
{
|
||||
REO_POS hierPrevOrient, hierNextOrient;
|
||||
REO_POS hierPrevOrient=UNKNOWN, hierNextOrient=UNKNOWN;
|
||||
|
||||
bool connectedLeftTopP = IsAligned( startF-1, startE-1 );
|
||||
bool connectedRightTopP = IsAligned( endF+1, startE-1 );
|
||||
|
Loading…
Reference in New Issue
Block a user