mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-06 19:49:41 +03:00
comment out g_numHypos
This commit is contained in:
parent
017e902441
commit
d748cd9484
@ -9,7 +9,7 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
extern size_t g_numHypos;
|
||||
//extern size_t g_numHypos;
|
||||
|
||||
istream &GetInputStream(Moses::Parameter ¶ms)
|
||||
{
|
||||
@ -51,6 +51,6 @@ int main(int argc, char** argv)
|
||||
delete &inStream;
|
||||
}
|
||||
|
||||
cerr << "g_numHypos=" << g_numHypos << endl;
|
||||
// cerr << "g_numHypos=" << g_numHypos << endl;
|
||||
cerr << "Finished" << endl;
|
||||
}
|
||||
|
@ -16,11 +16,11 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
size_t g_numHypos = 0;
|
||||
//size_t g_numHypos = 0;
|
||||
|
||||
Hypothesis *Hypothesis::Create(Manager &mgr)
|
||||
{
|
||||
++g_numHypos;
|
||||
// ++g_numHypos;
|
||||
Hypothesis *ret;
|
||||
|
||||
Recycler<Hypothesis*> &recycler = mgr.GetHypoRecycle();
|
||||
|
@ -70,7 +70,7 @@ using namespace Moses;
|
||||
|
||||
namespace Moses
|
||||
{
|
||||
extern size_t g_numHypos;
|
||||
//extern size_t g_numHypos;
|
||||
|
||||
void OutputFeatureWeightsForHypergraph(std::ostream &outputSearchGraphStream)
|
||||
{
|
||||
@ -278,7 +278,7 @@ batch_run()
|
||||
pool.Stop(true); //flush remaining jobs
|
||||
#endif
|
||||
|
||||
cerr << "g_numHypos=" << Moses::g_numHypos << endl;
|
||||
// cerr << "g_numHypos=" << Moses::g_numHypos << endl;
|
||||
|
||||
FeatureFunction::Destroy();
|
||||
|
||||
|
@ -43,7 +43,7 @@ using namespace std;
|
||||
|
||||
namespace Moses
|
||||
{
|
||||
size_t g_numHypos = 0;
|
||||
//size_t g_numHypos = 0;
|
||||
|
||||
Hypothesis::
|
||||
Hypothesis(Manager& manager, InputType const& source, const TranslationOption &initialTransOpt, const Bitmap &bitmap)
|
||||
@ -63,7 +63,7 @@ Hypothesis(Manager& manager, InputType const& source, const TranslationOption &i
|
||||
, m_manager(manager)
|
||||
, m_id(m_manager.GetNextHypoId())
|
||||
{
|
||||
++g_numHypos;
|
||||
// ++g_numHypos;
|
||||
// used for initial seeding of trans process
|
||||
// initialize scores
|
||||
//_hash_computed = false;
|
||||
@ -95,7 +95,7 @@ Hypothesis(const Hypothesis &prevHypo, const TranslationOption &transOpt, const
|
||||
, m_manager(prevHypo.GetManager())
|
||||
, m_id(m_manager.GetNextHypoId())
|
||||
{
|
||||
++g_numHypos;
|
||||
// ++g_numHypos;
|
||||
|
||||
m_currScoreBreakdown.PlusEquals(transOpt.GetScoreBreakdown());
|
||||
m_wordDeleted = transOpt.IsDeletionOption();
|
||||
|
Loading…
Reference in New Issue
Block a user