自然言語処理のレポート第1課題できたかも

Warningが発生する.

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\bitset(194): warning C4267: '初期化中' : 'size_t' から 'const int' に変換しました。データが失われているかもしれません。

該当行の_Posがsize_tで引かれていることが原因だろうな.

const int _Wordshift = _Pos / _Bitsperword;

こんな出力が得られるよ.検索対象語の個数と,その前後5語をリストアップするよ.

from other sources. This is obvious from the songs in this 
manufactured, however, a variety of objects from which they could extract 
allusions to the more pleasing objects in nature, as flowers, trees, 
flowers, precious stones and brilliant objects are constantly introduced in a 
did not in the least object to-night, for instance, to dropping 
to her that such an obvious fact scarcely needed words of 
designs on her father. She observed that she dressed much better 
she had ever done; she observed the fairly ostentatious attention which 
she was singing, and Maria observed how his arm pressed against 
absurd little strut. "Lord a-massy!" observed Mrs. Jonas White, after she 
full with that young one," observed Lillian. "I guess she will, 
was entirely useless, but she observed all the outward signs and 
first woman, should not be observed in her household. Without hinting 
able to rise above the obvious sham of them, the cloth 
she had an entirely self-centred object in mind, an object which 
self-centred object in mind, an object which might possibly meet with 
some cake and tea," she observed presently. "We won't have the 
quite well again. He had observed a certain diet and taken 
because the car-steps were of obvious use. That very night, when 
and seemed to regard the object of her solicitude as a 
that he really was an object of aversion to her. He 
after all, why do you object to lying? I suppose you 
0:object:6
1:objects:3
2:objected:0
3:observe:0
4:observes:0
5:observed:9
6:obvious:4

その他

  • Releaseビルドで実行すると1秒で完了する
  • C++で作った.std::string以外にも便利なものあるね
  • 自作関数5個
  • コメント含み152行