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:
authorJames Zhang <jzhang331@bloomberg.net>2015-03-07 02:37:07 +0300
committerKenneth Heafield <github@kheafield.com>2015-03-12 00:33:17 +0300
commit23704613deb69a2169abeee2e7c5e9d3cbe3674a (patch)
tree26b1e080353a17319a9902c48f672ed9282b83a6 /moses/ExportInterface.h
parent8b61f396a7558bf628c2e94a9583023b9ae34a8c (diff)
added a simple translation interface
Diffstat (limited to 'moses/ExportInterface.h')
-rw-r--r--moses/ExportInterface.h22
1 files changed, 18 insertions, 4 deletions
diff --git a/moses/ExportInterface.h b/moses/ExportInterface.h
index 8f5b3b7f6..56e37c7e1 100644
--- a/moses/ExportInterface.h
+++ b/moses/ExportInterface.h
@@ -33,10 +33,24 @@ POSSIBILITY OF SUCH DAMAGE.
// example file on how to use moses library
-
-#include "moses/StaticData.h"
-
-class IOWrapper;
+#include "StaticData.h"
+#include "IOWrapper.h"
+#include "TypeDef.h"
+
+class SimpleTranslationInterface
+{
+public:
+ static void DestroyFeatureFunctionStatic();
+ SimpleTranslationInterface(const std::string &mosesIni);
+ ~SimpleTranslationInterface();
+ std::string translate(const std::string &input);
+ Moses::StaticData& getStaticData();
+ Moses::Parameter& getParameters(){ return m_params; }
+private:
+ SimpleTranslationInterface();
+ Moses::Parameter m_params;
+ const Moses::StaticData& m_staticData;
+};
int decoder_main(int argc, char* argv[]);