diff options
Diffstat (limited to 'moses/Syntax')
-rw-r--r-- | moses/Syntax/F2S/HyperTreeLoader.cpp | 4 | ||||
-rw-r--r-- | moses/Syntax/F2S/RuleMatcherHyperTree-inl.h | 2 | ||||
-rw-r--r-- | moses/Syntax/T2S/RuleTrieLoader.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/moses/Syntax/F2S/HyperTreeLoader.cpp b/moses/Syntax/F2S/HyperTreeLoader.cpp index 00c8fa3fb..0ffc3602f 100644 --- a/moses/Syntax/F2S/HyperTreeLoader.cpp +++ b/moses/Syntax/F2S/HyperTreeLoader.cpp @@ -44,8 +44,8 @@ bool HyperTreeLoader::Load(const std::vector<FactorType> &input, { PrintUserTime(std::string("Start loading HyperTree")); - const StaticData &staticData = StaticData::Instance(); - const std::string &factorDelimiter = staticData.GetFactorDelimiter(); + // const StaticData &staticData = StaticData::Instance(); + // const std::string &factorDelimiter = staticData.GetFactorDelimiter(); std::size_t count = 0; diff --git a/moses/Syntax/F2S/RuleMatcherHyperTree-inl.h b/moses/Syntax/F2S/RuleMatcherHyperTree-inl.h index ba444350a..d7ce2cf7c 100644 --- a/moses/Syntax/F2S/RuleMatcherHyperTree-inl.h +++ b/moses/Syntax/F2S/RuleMatcherHyperTree-inl.h @@ -164,7 +164,7 @@ bool RuleMatcherHyperTree<Callback>::MatchChildren( if (children.size() != subSeqSize) { return false; } - for (int i = 0; i < subSeqSize; ++i) { + for (size_t i = 0; i < subSeqSize; ++i) { if (edgeLabel[pos+i] != children[i]->pvertex.symbol[0]->GetId()) { return false; } diff --git a/moses/Syntax/T2S/RuleTrieLoader.cpp b/moses/Syntax/T2S/RuleTrieLoader.cpp index b22fb351a..81924f05d 100644 --- a/moses/Syntax/T2S/RuleTrieLoader.cpp +++ b/moses/Syntax/T2S/RuleTrieLoader.cpp @@ -43,7 +43,7 @@ bool RuleTrieLoader::Load(const std::vector<FactorType> &input, PrintUserTime(std::string("Start loading text phrase table. Moses format")); const StaticData &staticData = StaticData::Instance(); - const std::string &factorDelimiter = staticData.GetFactorDelimiter(); + // const std::string &factorDelimiter = staticData.GetFactorDelimiter(); std::size_t count = 0; |