21 #include <tr1/unordered_map> 32 using std::ostringstream;
33 using std::numeric_limits;
41 const unsigned int l)
const;
42 unsigned int ClosestReferenceLength (
const unsigned int hypLength)
const;
43 NGramToCountMap refCounts;
44 vector<unsigned int> refLengths;
47 RefsData (
const vector<Sentence>& refs);
49 string ToString (
const char separator)
const;
60 void LoadRefData (vector<string>);
unordered_map< NGram, unsigned int, hashfvecint64, hasheqvecint64 > NGramToCountMap
HashFVec< std::vector< long long > > hashfvecint64
std::vector< Wid > Sentence
BleuStats ComputeBleuStats(const Sentence &hyp) const
vector< RefsData > RefsDataIndex
ostream & operator<<(ostream &o, const Sentence &s)
string ToString(const char separator) const