public static Corpus readCorpusData(File corpusFile ){
	System.out.println("--- Read corpus data ---");
	
	Corpus readCorpus = new Corpus();
	
	File[] fileArray;
	try {
	    if (corpusFile.isDirectory()) {
		fileArray  = corpusFile.listFiles(new FilenameFilter() {
		    public boolean accept(File dir, String name) {
			return name.toLowerCase().endsWith(".xml");
		    }
		});
		for (File file : fileArray) {
		    System.out.println("--- - Parse File: " + file.getName() + " - ---");
		    readCorpus.parseFile(file);
		}
	    } else {
		System.out.println("--- - Parse corpus file: " + corpusFile.getName() + " - ---");
		readCorpus.parseFile(corpusFile);
	    }
	} catch (Exception e) {
	    e.printStackTrace();
	}
	
	System.out.println("--- Finished reading corpus data ---");
	
	return readCorpus;
    }