От: | igna | ||
Дата: | 12.08.09 05:52 | ||
Оценка: |
vector<vector<string> > text_to_vvs(Text const* const text)
{
vector<vector<string> > vvs;
for (Sentence const* sent = text->FirstSentence(); sent; sent = sent->Next()) {
vector<string> vs;
for (Word const* w = sent->FirstWord(); w; w = w->Next())
vs.push_back(w->Str()); // w->Str() returns char const*
vvs.push_back(vs);
}
return vvs;
}