X-Git-Url: http://sigaev.ru/git/gitweb.cgi?p=ftsbench.git;a=blobdiff_plain;f=finnegan.c;fp=finnegan.c;h=efb0a5a1d4e404f5c13d5de632fb47e34793fa39;hp=24a4abdd2144b98b3aacb226779e30d48c085625;hb=34dc32fe558e25dfe4c7c80b94b126e597ebac2f;hpb=430dd7ec2f63bd59274f832a28d45eb6cf737cbd diff --git a/finnegan.c b/finnegan.c index 24a4abd..efb0a5a 100644 --- a/finnegan.c +++ b/finnegan.c @@ -229,15 +229,17 @@ generate_querywords() { void -finnegan_init(char *lex_file, char *doc_file) { +finnegan_init(char *lex_file, char *doc_file, int quiet) { if ( isInited ) { fprintf(stderr,"finnegan is already inited\n"); exit(1); } - printf("Initialize text generator with:\n"); - printf("\tfile '%s' - lexeme's distribution\n", lex_file); - printf("\tfile '%s' - length's distribution\n", doc_file); + if (!quiet) { + printf("Initialize text generator with:\n"); + printf("\tfile '%s' - lexeme's distribution\n", lex_file); + printf("\tfile '%s' - length's distribution\n", doc_file); + } srnd(INITIAL_SEED); no_of_words = no_newline(lex_file); no_of_docs = no_newline(doc_file);