Skip to content

Commit 8a9d920

Browse files
Ko van der SlootKo van der Sloot
authored andcommitted
allow # as word separator while testing
1 parent bd5aa3d commit 8a9d920

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/W2V-analogy.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,16 @@ int main( int argc, char *argv[] ){
6464
cerr << "failed to open: " << outname << endl;
6565
continue;
6666
}
67-
int err_cnt = 5;
67+
int err_cnt = 10;
6868
string line;
6969
while ( getline( is, line ) ){
7070
vector<string> words;
71-
int cnt = TiCC::split( line, words );
71+
int cnt = TiCC::split_at_first_of( line, words, "\t#" );
7272
if ( cnt == 1 && words[0] == "EXIT" ){
7373
break;
7474
}
7575
if ( cnt != 3 ){
76-
cerr << "only " << cnt << " words found on this line. 3 needed" << endl;
76+
cerr << "problem: " << cnt << " words found on this line. Exactly 3 needed" << endl;
7777
if ( --err_cnt == 0 ){
7878
cerr << "too many errors in this file: " << name << endl;
7979
break;

0 commit comments

Comments
 (0)