@@ -18,13 +18,13 @@ CYBOZU_TEST_AUTO(test_vocabularies_for_std_string)
1818" The/at jury/nn further/rbr said/vbd in/in term-end/nn presentments/nns that/cs the/at City/nn-tl Executive/jj-tl Committee/nn-tl ,/, "
1919" which/wdt had/hvd over-all/jj charge/nn of/in the/at election/nn ,/, ``/`` deserves/vbz the/at praise/nn and/cc thanks/nns of/in the/at "
2020" City/nn-tl of/in-tl Atlanta/np-tl ''/'' for/in the/at manner/nn in/in which/wdt the/at election/nn was/bedz conducted/vbn ./." ;
21- cybozu::ldacvb0::Documents<std::string, char > d (cybozu::ldacvb0::REXWORD_WITH_POS);
21+ cybozu::ldacvb0::Documents<std::string, char > d (cybozu::ldacvb0::REXWORD_WITH_POS, true );
2222 d.add (st);
2323 cybozu::ldacvb0::Vocabularies<std::string>& v = d.vocabularies ;
24- CYBOZU_TEST_EQUAL (v.size (), 42 );
24+ CYBOZU_TEST_EQUAL (v.size (), 37 );
2525 CYBOZU_TEST_EQUAL (v.count (" the" ), 8 );
2626 CYBOZU_TEST_EQUAL (v.count (" tHE" ), 8 );
27- CYBOZU_TEST_EQUAL (v.count (" in" ), 2 );
27+ CYBOZU_TEST_EQUAL (v.count (" in" ), 0 );
2828 CYBOZU_TEST_EQUAL (v.count (" grand" ), 1 );
2929
3030 CYBOZU_TEST_EQUAL (v.count (" the/at" ), 0 );
@@ -146,7 +146,7 @@ void printgamma(const cybozu::ldacvb0::Mat& gamma) {
146146
147147CYBOZU_TEST_AUTO (test_lda_cvb0_initialization)
148148{
149- Documents<std::string, char > docs;
149+ Documents<std::string, char > docs (cybozu::ldacvb0::REXWORD, true ) ;
150150 docs.vocabularies .add (" a" ); // 0
151151 docs.vocabularies .add (" b" ); // 1
152152 docs.vocabularies .add (" c" ); // 2
0 commit comments