get rid of some warnings

This commit is contained in:
Hieu Hoang 2013-09-22 18:24:32 +02:00
parent 3d8ac40e09
commit e6f53d83c2
9 changed files with 9 additions and 10 deletions

View File

@ -140,14 +140,12 @@ void ChartManager::AddXmlChartOptions()
i != xmlChartOptionsList.end(); ++i) {
ChartTranslationOptions* opt = *i;
const TargetPhrase &targetPhrase = opt->GetTargetPhrases()[0]->GetPhrase();
const WordsRange &range = opt->GetSourceWordsRange();
RuleCubeItem* item = new RuleCubeItem( *opt, m_hypoStackColl );
ChartHypothesis* hypo = new ChartHypothesis(*opt, *item, *this);
hypo->Evaluate();
const Word &targetLHS = hypo->GetTargetLHS();
ChartCell &cell = m_hypoStackColl.Get(range);
cell.AddHypothesis(hypo);

View File

@ -13,9 +13,9 @@ namespace Moses
class PhraseDictionary;
class TargetPhraseCollection;
class ScoreComponentCollection;
class ScorePair;
class TargetPhrase;
class InputPath;
struct ScorePair;
typedef std::list<InputPath*> InputPathList;

View File

@ -27,7 +27,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#include "moses/Factor.h"
#include "moses/TypeDef.h"
#include "moses/Util.h"
#include "moses/FF/FeatureFunction.h"
#include "moses/Word.h"
#include "Base.h"

View File

@ -27,6 +27,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#include "StaticData.h"
#include "ChartTranslationOptions.h"
#include "Util.h"
#include "XmlOption.h"
#include <boost/algorithm/string.hpp>
using namespace std;

View File

@ -27,7 +27,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#include "Word.h"
#include "Phrase.h"
#include "InputType.h"
#include "XmlOption.h"
namespace Moses
{
@ -37,7 +36,7 @@ class PhraseDictionary;
class TranslationOption;
class TranslationOptionCollection;
class ChartTranslationOptions;
class XmlOption;
struct XmlOption;
/**

View File

@ -41,11 +41,12 @@
#include "moses/StaticData.h"
#include "moses/WordsRange.h"
#include "moses/UserMessage.h"
#include "util/file.hh"
#include "moses/TranslationModel/CYKPlusParser/ChartRuleLookupManagerMemoryPerSentence.h"
#include "moses/TranslationModel/fuzzy-match/FuzzyMatchWrapper.h"
#include "moses/TranslationModel/fuzzy-match/SentenceAlignment.h"
#include "util/check.hh"
#include "util/file.hh"
#include "util/exception.hh"
using namespace std;
@ -171,7 +172,7 @@ void PhraseDictionaryFuzzyMatch::InitializeForInput(InputType const& inputSenten
while(getline(inStream, lineOrig)) {
const string *line;
if (format == HieroFormat) { // reformat line
assert(false);
UTIL_THROW(util::Exception, "Cannot be Hiero format");
//line = ReformatHieroRule(lineOrig);
} else {
// do nothing to format of line

View File

@ -23,7 +23,7 @@
namespace tmmt
{
class Match;
class SentenceAlignment;
struct SentenceAlignment;
class FuzzyMatchWrapper
{

View File

@ -28,6 +28,7 @@
#include "StaticData.h"
#include "WordsRange.h"
#include "TargetPhrase.h"
#include "ReorderingConstraint.h"
namespace Moses
{

View File

@ -5,12 +5,12 @@
#include <string>
#include "WordsRange.h"
#include "TargetPhrase.h"
#include "ReorderingConstraint.h"
namespace Moses
{
class TranslationOption;
class ReorderingConstraint;
/** This struct is used for storing XML force translation data for a given range in the sentence
*/