12 #ifndef GENERICINTERVALBOUNDARY_H_ 13 #define GENERICINTERVALBOUNDARY_H_ 18 template<
typename ErrorStats>
21 typedef typename ErrorStats::Error
Error;
27 sentence (sentence), gamma (gamma), errorStats (errorStats),
deltaScore (
40 friend ostream& operator<< (ostream& os, const IntervalData<ErrorStats>& id) {
41 Error error =
id.errorStats.ComputeError();
42 os <<
id.sentence <<
" " << std::fixed << std::setprecision (
44 << std::setprecision (4) << error <<
" " << std::setprecision (8)
45 <<
id.expScore <<
" " <<
id.score <<
'\t' 51 template<
typename IntervalBoundary>
53 const IntervalBoundary& ib2);
bool IntervalBoundarySortPredicate(const IntervalBoundary &ib1, const IntervalBoundary &ib2)
IntervalData(Sid sentence, const double gamma, ErrorStats errorStats, const double deltaScore=0.0, const double deltaExpScore=0.0)