42 for (
int i = 0; i <
N; i++) {
54 for (
int i =
N - 1; i >= 0; i--) {
67 for (
int i = 0; i <
N; i++) {
68 str +=
"<" +
ngrams[i] +
"> ";
75 assert(n >= 0 && n <
N);
81 assert(n >= 0 && n <
N);
std::string toString() const
void setNgram(const int n, const std::string str)
std::string getNgram(const int n) const
Ngram & operator=(const Ngram &)
bool operator<(const Ngram &) const
std::ostream & operator<<(std::ostream &output, const Ngram &b)