Changeset 860 for trunk/gsdl/src/mgpp/text/mg_weights_build.cpp
- Timestamp:
- 2000-01-18T16:53:24+13:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/mgpp/text/mg_weights_build.cpp
r856 r860 48 48 /* 49 49 $Log$ 50 Revision 1.2 2000/01/18 03:53:24 rjmcnab 51 Fixed a couple of bugs and made building silent if needed. 52 50 53 Revision 1.1 2000/01/14 02:26:21 sjboddie 51 54 Rodgers new C++ mg … … 158 161 wordEl.SetNumLevels (idh.num_levels); 159 162 for (wordNum=0; wordNum<idh.word_dict_size; wordNum++) { 163 #ifndef SILENT 160 164 // give a little feedback every 4096 words 161 165 if ((wordNum & 0xfff) == 0) fprintf (stderr, "."); 166 #endif 162 167 163 168 wordEl.Read (dictFile, idh.num_levels); … … 263 268 double B = pow (U / L, pow (2.0, -(double) bits)); 264 269 270 #ifndef SILENT 265 271 fprintf (stderr, "L = %f\n", L); 266 272 fprintf (stderr, "U = %f\n", U); 267 273 fprintf (stderr, "B = %f\n", B); 268 274 #endif 275 269 276 WriteUC (approxWeightsFile, bits); 270 277 WriteD (approxWeightsFile, L); … … 281 288 if (wgt == 0) { 282 289 wgt = L; 283 #ifndef QUIET290 #ifndef SILENT 284 291 Message ("Warning: Document %d had a weight of 0.", i); 285 292 #endif
Note:
See TracChangeset
for help on using the changeset viewer.