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:
authorphikoehn <pkoehn@inf.ed.ac.uk>2014-01-06 02:39:47 +0400
committerphikoehn <pkoehn@inf.ed.ac.uk>2014-01-06 02:39:47 +0400
commit9ea0f5dd0ecf3f8f3bc3b870c9850b666ceb3d53 (patch)
tree7d1404b6c7b386973d1e00d4234583ae7513ecc2 /moses-cmd
parente8f00eb4202b9d1614daef2e8ccf2b93c4540ac2 (diff)
reporting on init (pretty slow for binary phrase table!) and bug fix in experiment.perl with setting filter settings
Diffstat (limited to 'moses-cmd')
-rw-r--r--moses-cmd/Main.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/moses-cmd/Main.cpp b/moses-cmd/Main.cpp
index 02620b8fd..eb4f20e0d 100644
--- a/moses-cmd/Main.cpp
+++ b/moses-cmd/Main.cpp
@@ -109,6 +109,13 @@ public:
/** Translate one sentence
* gets called by main function implemented at end of this source file */
void Run() {
+ // shorthand for "global data"
+ const StaticData &staticData = StaticData::Instance();
+
+ // input sentence
+ Sentence sentence;
+
+ // report wall time spent on translation
Timer translationTime;
translationTime.start();
@@ -117,16 +124,14 @@ public:
TRACE_ERR("Translating line " << m_lineNumber << " in thread id " << pthread_self() << std::endl);
#endif
- // shorthand for "global data"
- const StaticData &staticData = StaticData::Instance();
-
- // input sentence
- Sentence sentence;
// execute the translation
// note: this executes the search, resulting in a search graph
// we still need to apply the decision rule (MAP, MBR, ...)
+ Timer initTime;
+ initTime.start();
Manager manager(m_lineNumber, *m_source,staticData.GetSearchAlgorithm());
+ VERBOSE(1, "Line " << m_lineNumber << ": Initialize search took " << initTime << " seconds total" << endl);
manager.ProcessSentence();
// we are done with search, let's look what we got