mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 05:55:02 +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();
|
const std::vector<const Subgraph *> &rules = (*p)->GetRules();
|
||||||
|
|
||||||
REO_POS l2rOrientation, r2lOrientation;
|
REO_POS l2rOrientation=UNKNOWN, r2lOrientation=UNKNOWN;
|
||||||
if (options.phraseOrientation && !rules.empty()) {
|
if (options.phraseOrientation && !rules.empty()) {
|
||||||
int sourceSpanBegin = *((*p)->GetSpan().begin());
|
int sourceSpanBegin = *((*p)->GetSpan().begin());
|
||||||
int sourceSpanEnd = *((*p)->GetSpan().rbegin());
|
int sourceSpanEnd = *((*p)->GetSpan().rbegin());
|
||||||
|
@ -19,11 +19,9 @@
|
|||||||
|
|
||||||
#include "PhraseOrientation.h"
|
#include "PhraseOrientation.h"
|
||||||
|
|
||||||
#include <sstream>
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <sstream>
|
|
||||||
|
|
||||||
#include <boost/assign/list_of.hpp>
|
#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
|
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 connectedLeftTopP = IsAligned( startF-1, startE-1 );
|
||||||
bool connectedRightTopP = IsAligned( endF+1, startE-1 );
|
bool connectedRightTopP = IsAligned( endF+1, startE-1 );
|
||||||
|
Loading…
Reference in New Issue
Block a user