fixing dividing bu zero

git-svn-id: https://russianmorphology.googlecode.com/svn/trunk@126 d817d54c-26ab-11de-abc9-2f7d1455ff7a
This commit is contained in:
Alexander.A.Kuznetsov@gmail.com 2012-01-20 17:21:54 +00:00
parent 2b9e2c5b1e
commit 19559e2856

View File

@ -96,7 +96,7 @@ public class TestAllWords {
RemoveFlexiaWithPrefixes removeFlexiaWithPrefixes = new RemoveFlexiaWithPrefixes(wordStringCleaner); RemoveFlexiaWithPrefixes removeFlexiaWithPrefixes = new RemoveFlexiaWithPrefixes(wordStringCleaner);
dictionaryReader.process(removeFlexiaWithPrefixes); dictionaryReader.process(removeFlexiaWithPrefixes);
long time = System.currentTimeMillis() - startTime; long time = System.currentTimeMillis() - startTime;
System.out.println("Done " + wordCount.get() + " in " + time + " ms. " + wordCount.get() / (time / 1000L) + " word per second"); System.out.println("Done " + wordCount.get() + " in " + time + " ms. " + wordCount.get() / (time / 1000.0) + " word per second");
} }
@Test @Test