diff options
author | Chris Dyer <redpony@gmail.com> | 2009-12-14 20:35:11 -0500 |
---|---|---|
committer | Chris Dyer <redpony@gmail.com> | 2009-12-14 20:35:11 -0500 |
commit | 851e389dffdd6996ea32d70defb8906de80b9edc (patch) | |
tree | 8c68ee77205badc056b8ab5b332e67e3e98017df /src/translator.h | |
parent | dc6930c00b4b276883280cff1ed6dcd9ddef03c7 (diff) |
few small fixes of alignment tools, add new orthographic similarity feature for word aligner, final naming of directories, libraries in cdec
Diffstat (limited to 'src/translator.h')
-rw-r--r-- | src/translator.h | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/translator.h b/src/translator.h deleted file mode 100644 index 194efbaa..00000000 --- a/src/translator.h +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef _TRANSLATOR_H_ -#define _TRANSLATOR_H_ - -#include <string> -#include <vector> -#include <boost/shared_ptr.hpp> -#include <boost/program_options/variables_map.hpp> - -class Hypergraph; -class SentenceMetadata; - -class Translator { - public: - virtual ~Translator(); - // returns true if goal reached, false otherwise - // minus_lm_forest will contain the unpruned forest. the - // feature values from the phrase table / grammar / etc - // should be in the forest already - the "late" features - // should not just copy values that are available without - // any context or computation. - // SentenceMetadata contains information about the sentence, - // but it is an input/output parameter since the Translator - // is also responsible for setting the value of src_len. - virtual bool Translate(const std::string& src, - SentenceMetadata* smeta, - const std::vector<double>& weights, - Hypergraph* minus_lm_forest) = 0; -}; - -class SCFGTranslatorImpl; -class SCFGTranslator : public Translator { - public: - SCFGTranslator(const boost::program_options::variables_map& conf); - bool Translate(const std::string& src, - SentenceMetadata* smeta, - const std::vector<double>& weights, - Hypergraph* minus_lm_forest); - private: - boost::shared_ptr<SCFGTranslatorImpl> pimpl_; -}; - -class FSTTranslatorImpl; -class FSTTranslator : public Translator { - public: - FSTTranslator(const boost::program_options::variables_map& conf); - bool Translate(const std::string& src, - SentenceMetadata* smeta, - const std::vector<double>& weights, - Hypergraph* minus_lm_forest); - private: - boost::shared_ptr<FSTTranslatorImpl> pimpl_; -}; - -#endif |