package de.uniulm.mathematik.typo.hyphen; import java.io.*; public class TestLoader { public static void main(String[] args) { if (args.length != 1) { System.err.println("Usage: TestLoader wortliste"); } else { try { HyphenationWordList hwl = HyphenationWordListLoader.load(args[0]); System.out.println("word list with " + hwl.size() + " entries loaded"); System.out.println("min weight = " + hwl.getMinWeight()); System.out.println("max weight = " + hwl.getMaxWeight()); } catch (Exception e) { e.printStackTrace(); } } } }