result.get(correctLang).add("unknown"); if (hasParam("--debug")) System.out.println(correctLang + "," + lang + "," + (text.length() > 100 ? text.substring(0, 100) : text));
result.get(correctLang).add("unknown"); if (hasParam("--debug")) System.out.println(correctLang + "," + lang + "," + (text.length() > 100 ? text.substring(0, 100) : text));
/** * Command Line Interface * @param args command line arguments */ public static void main(String[] args) throws IOException { CommandLineInterface cli = new CommandLineInterface(); cli.addOpt("-d", "directory", "./"); cli.addOpt("-a", "alpha", "" + DEFAULT_ALPHA); cli.addOpt("-s", "seed", null); cli.parse(args); if (cli.hasParam("--genprofile")) { cli.generateProfile(); } else if (cli.hasParam("--detectlang")) { cli.detectLang(); } else if (cli.hasParam("--batchtest")) { cli.batchTest(); } }
/** * Command Line Interface * @param args command line arguments */ public static void main(String[] args) throws IOException { CommandLineInterface cli = new CommandLineInterface(); cli.addOpt("-d", "directory", "./"); cli.addOpt("-a", "alpha", "" + DEFAULT_ALPHA); cli.addOpt("-s", "seed", null); cli.parse(args); if (cli.hasParam("--genprofile")) { cli.generateProfile(); } else if (cli.hasParam("--detectlang")) { cli.detectLang(); } else if (cli.hasParam("--batchtest")) { cli.batchTest(); } }