We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd5aa3d commit 8a9d920Copy full SHA for 8a9d920
src/W2V-analogy.cxx
@@ -64,16 +64,16 @@ int main( int argc, char *argv[] ){
64
cerr << "failed to open: " << outname << endl;
65
continue;
66
}
67
- int err_cnt = 5;
+ int err_cnt = 10;
68
string line;
69
while ( getline( is, line ) ){
70
vector<string> words;
71
- int cnt = TiCC::split( line, words );
+ int cnt = TiCC::split_at_first_of( line, words, "\t#" );
72
if ( cnt == 1 && words[0] == "EXIT" ){
73
break;
74
75
if ( cnt != 3 ){
76
- cerr << "only " << cnt << " words found on this line. 3 needed" << endl;
+ cerr << "problem: " << cnt << " words found on this line. Exactly 3 needed" << endl;
77
if ( --err_cnt == 0 ){
78
cerr << "too many errors in this file: " << name << endl;
79
0 commit comments