]> gitweb.fperrin.net Git - DictionaryPC.git/blobdiff - src/com/hughes/android/dictionary/parser/enwiktionary/EnWiktionaryXmlParser.java
zipSize, overrideStoplist-> special isMainEntry, tagalog, trying to
[DictionaryPC.git] / src / com / hughes / android / dictionary / parser / enwiktionary / EnWiktionaryXmlParser.java
index 8f51e4e9d40dece1f25c270b2211b37cf5451f50..62aa430a4f09840172f4c14d4279015e8d3f3617 100644 (file)
@@ -89,6 +89,7 @@ public class EnWiktionaryXmlParser {
     this.entrySource = entrySource;
     int pageCount = 0;
     final DataInputStream dis = new DataInputStream(new BufferedInputStream(new FileInputStream(file)));
+    try {
     while (true) {
       if (pageLimit >= 0 && pageCount >= pageLimit) {
         return;
@@ -114,6 +115,11 @@ public class EnWiktionaryXmlParser {
         LOG.info("pageCount=" + pageCount);
       }
     }
+    } finally {
+      System.out.println("lang Counts: " + appendAndIndexWikiCallback.langCodeToTCount);
+      appendAndIndexWikiCallback.langCodeToTCount.keySet().removeAll(EnWiktionaryLangs.isoCodeToWikiName.keySet());
+      System.out.println("unused Counts: " + appendAndIndexWikiCallback.langCodeToTCount);
+    }
   }
   
   private void parseSection(String heading, final String text) {