Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2017-01-09 21:56:25 +0300
committerHieu Hoang <hieuhoang@gmail.com>2017-01-09 21:56:25 +0300
commit1603c25babaf7e2464ce747c018aaf688c5baebe (patch)
tree7d15e7445b0a9a26ce536239b6b2e734208f8617 /contrib/moses2/FF/FeatureFunctions.cpp
parent4d13377ce8a42eff71fd1ad57915198d1f681fbc (diff)
minor rename
Diffstat (limited to 'contrib/moses2/FF/FeatureFunctions.cpp')
-rw-r--r--contrib/moses2/FF/FeatureFunctions.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/moses2/FF/FeatureFunctions.cpp b/contrib/moses2/FF/FeatureFunctions.cpp
index 49a0ace67..5cb0bb1c2 100644
--- a/contrib/moses2/FF/FeatureFunctions.cpp
+++ b/contrib/moses2/FF/FeatureFunctions.cpp
@@ -52,7 +52,7 @@ void FeatureFunctions::Load()
}
// load pt
-BOOST_FOREACH(const PhraseTable *pt, m_phraseTables) {
+BOOST_FOREACH(const PhraseTable *pt, phraseTables) {
PhraseTable *nonConstPT = const_cast<PhraseTable*>(pt);
cerr << "Loading " << nonConstPT->GetName() << endl;
nonConstPT->Load(m_system);
@@ -86,8 +86,8 @@ void FeatureFunctions::Create()
PhraseTable *pt = dynamic_cast<PhraseTable*>(ff);
if (pt) {
- pt->SetPtInd(m_phraseTables.size());
- m_phraseTables.push_back(pt);
+ pt->SetPtInd(phraseTables.size());
+ phraseTables.push_back(pt);
}
UnknownWordPenalty *unkWP = dynamic_cast<UnknownWordPenalty *>(pt);
@@ -165,7 +165,7 @@ FeatureFunction *FeatureFunctions::FindFeatureFunction(
const PhraseTable *FeatureFunctions::GetPhraseTableExcludeUnknownWordPenalty(size_t ptInd)
{
// assume only 1 unk wp
- std::vector<const PhraseTable*> tmpVec(m_phraseTables);
+ std::vector<const PhraseTable*> tmpVec(phraseTables);
std::vector<const PhraseTable*>::iterator iter;
for (iter = tmpVec.begin(); iter != tmpVec.end(); ++iter) {
const PhraseTable *pt = *iter;