System.out.println("Invalis options. Please use --help to see how to use the tool.");
break;
}
}
@@ -87,6 +92,18 @@ public class ArgumentParser {
privatevoidprintHelp(){
System.out.println("Help information:");
System.out.println(" Corrector Options:");
System.out.println(" --file <filename>: this option should be used if you want to pass your input as file.");
System.out.println(" --sentence <sentence>: this option should be used if you want to pass your input as a small sentence.");
System.out.println(" --correctorGUI: this option can be used if you want a GUI for the corrector to select between possible suggestions.");
System.out.println(" --translateDutch <sentence>: this option should be used if you want to translate from English to Dutch.");
System.out.println(" Checker Options:");
System.out.println(" --file <filename>: this option should be used if you want to pass your input as file.");
System.out.println(" --sentence <sentence>: this option should be used if you want to pass your input as a small sentence.");
System.out.println(" --checkerGUI: this option can be used if you want a GUI for the checker to see the highlighted sentences.");
System.out.println(" --updateToken: this option should be used alongside a file as input to update new tokens for the database. This option may take hours based on the size of crawled file.");
System.out.println(" --updateHashTable: this option should be used alongside a file as input to update n-grams weights for the database. This option may take a few minutes.");
System.out.println(" --validateUpdates: this option can be used to check the correctness of the database for tokens. This will pops up a window.");