OptionlistDefinitions=newOption("l","listsURL",true,"Dictionary List definitions. "
+"A lists.def Gate-formatted file separated by tab can be provided or a zip file that contains the dictionary/gazetteer files including the lists.def ");
+"A lists.def Gate-formatted file separated by tab can be provided or a zip file that contains the dictionary/gazetteer files including the lists.def. "
+" More than one .def files can be provided separated by , (i.e: lists.def,lists2.def) this configuration will generate two steps of gazetter annotation. ");
listDefinitions.setRequired(false);
options.addOption(listDefinitions);
...
...
@@ -181,14 +182,29 @@ public class App {
if(listsDefinitionsPath==null){
System.out.println("No dictionary was provided.");
//System.out.println("Please set the list of dictionaries to annotate. You can provide the list.def file or a zip file. Please if you provided a zip file remember that it must contain a list.def file inside");
System.out.println("Please set the list of dictionaries to annotate in the correct format. You can provide the list.def file (or files , separated) or a zip file. Please if you provided a zip file remember that it must contain a list.def file inside");
// if (!java.nio.file.Files.isRegularFile(Paths.get(listsDefinitionsPath))) {
// //System.out.println("Please set the list of dictionaries to annotate. You can provide the list.def file or a zip file. Please if you provided a zip file remember that it must contain a list.def file inside");