Welcome to mirror list, hosted at ThFree Co, Russian Federation.

SentenceStats.h « src « moses - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e3c1715b2a4064a73d098701cc3a1b9a5e6cc9e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _SENTENCE_STATS_H_
#define _SENTENCE_STATS_H_

#include <iostream>

struct SentenceStats
{
	SentenceStats() : numRecombinations(0), numPruned(0) {};
	unsigned int numRecombinations;
	unsigned int numPruned;

	void ZeroAll() { numRecombinations = 0; numPruned = 0; }
};

inline std::ostream& operator<<(std::ostream& os, const SentenceStats& ss)
{
  return os << "number of hypotheses recombined=" << ss.numRecombinations << std::endl
						<< "  \"           \"          pruned=" << ss.numPruned << std::endl;
}

#endif