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
path: root/moses/FF
diff options
context:
space:
mode:
authorAles Tamchyna <tamchyna@ufal.mff.cuni.cz>2016-03-24 14:45:35 +0300
committerAles Tamchyna <tamchyna@ufal.mff.cuni.cz>2016-03-24 14:45:35 +0300
commit90a3650b420aa2c2a8272d4e636b7706808460f9 (patch)
tree85090f22daa00318006d0190e118675074260778 /moses/FF
parent073f9c56565ab9490329f81af1103d38eb720ccf (diff)
minor
Diffstat (limited to 'moses/FF')
-rw-r--r--moses/FF/VW/VW.cpp2
-rw-r--r--moses/FF/VW/VWState.cpp4
-rw-r--r--moses/FF/VW/VWState.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/moses/FF/VW/VW.cpp b/moses/FF/VW/VW.cpp
index 112a6ed1c..061a8536c 100644
--- a/moses/FF/VW/VW.cpp
+++ b/moses/FF/VW/VW.cpp
@@ -183,7 +183,7 @@ const FFState* VW::EmptyHypothesisState(const InputType &input) const {
for (size_t i = 0; i < maxContextSize; i++)
initialPhrase.AddWord(m_sentenceStartWord);
- return new VWState(initialPhrase, 0, 0);
+ return new VWState(initialPhrase);
}
void VW::EvaluateTranslationOptionListWithSourceContext(const InputType &input
diff --git a/moses/FF/VW/VWState.cpp b/moses/FF/VW/VWState.cpp
index 8388d0fee..c876c38fb 100644
--- a/moses/FF/VW/VWState.cpp
+++ b/moses/FF/VW/VWState.cpp
@@ -15,8 +15,8 @@ VWState::VWState() : m_spanStart(0), m_spanEnd(0) {
ComputeHash();
}
-VWState::VWState(const Phrase &phrase, size_t spanStart, size_t spanEnd)
- : m_phrase(phrase), m_spanStart(spanStart), m_spanEnd(spanEnd) {
+VWState::VWState(const Phrase &phrase)
+ : m_phrase(phrase), m_spanStart(0), m_spanEnd(0) {
ComputeHash();
}
diff --git a/moses/FF/VW/VWState.h b/moses/FF/VW/VWState.h
index d66a4ebfd..5f434a041 100644
--- a/moses/FF/VW/VWState.h
+++ b/moses/FF/VW/VWState.h
@@ -17,7 +17,7 @@ public:
VWState();
// used for construction of the initial VW state
- VWState(const Phrase &phrase, size_t spanStart, size_t spanEnd);
+ VWState(const Phrase &phrase);
// continue from previous VW state with a new hypothesis
VWState(const VWState &prevState, const Hypothesis &curHypo);