mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-10-26 11:28:48 +03:00
get rid of some warnings
This commit is contained in:
parent
3d8ac40e09
commit
e6f53d83c2
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -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
|
||||
|
@ -23,7 +23,7 @@
|
||||
namespace tmmt
|
||||
{
|
||||
class Match;
|
||||
class SentenceAlignment;
|
||||
struct SentenceAlignment;
|
||||
|
||||
class FuzzyMatchWrapper
|
||||
{
|
||||
|
@ -28,6 +28,7 @@
|
||||
#include "StaticData.h"
|
||||
#include "WordsRange.h"
|
||||
#include "TargetPhrase.h"
|
||||
#include "ReorderingConstraint.h"
|
||||
|
||||
namespace Moses
|
||||
{
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user