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:
Diffstat (limited to 'moses/src/Phrase.h')
-rw-r--r--moses/src/Phrase.h18
1 files changed, 2 insertions, 16 deletions
diff --git a/moses/src/Phrase.h b/moses/src/Phrase.h
index e8f864a97..95f3a83e6 100644
--- a/moses/src/Phrase.h
+++ b/moses/src/Phrase.h
@@ -42,10 +42,6 @@ class Phrase
friend std::ostream& operator<<(std::ostream&, const Phrase&);
private:
- FactorDirection m_direction; /** Reusing Direction enum to really mean which language
- Input = Source, Output = Target.
- Not really used, but nice to know for debugging purposes
- */
std::vector<Word> m_words;
public:
@@ -53,16 +49,11 @@ public:
static void InitializeMemPool();
static void FinalizeMemPool();
- /** copy constructor */
- Phrase(const Phrase &copy);
- Phrase& operator=(const Phrase&);
-
/** create empty phrase
- * \param direction = language (Input = Source, Output = Target)
*/
- Phrase(FactorDirection direction, size_t reserveSize);
+ Phrase(size_t reserveSize);
/** create phrase from vectors of words */
- Phrase(FactorDirection direction, const std::vector< const Word* > &mergeWords);
+ Phrase(const std::vector< const Word* > &mergeWords);
/** destructor */
virtual ~Phrase();
@@ -96,11 +87,6 @@ public:
bool IsCompatible(const Phrase &inputPhrase, FactorType factorType) const;
bool IsCompatible(const Phrase &inputPhrase, const std::vector<FactorType>& factorVec) const;
- //! really means what language. Input = Source, Output = Target
- inline FactorDirection GetDirection() const {
- return m_direction;
- }
-
//! number of words
inline size_t GetSize() const {
return m_words.size();