src/main/java/eu/digitisation/langutils/TermFrequency.java
public void add(File dir) throws WarningException, SchemaLocationException {
        if (dir.isDirectory()) {
            addFiles(dir.listFiles());
        } else {
            File[] files = {dir};
            addFiles(files);
        }
    }
/**
     * Extract words from a file
     *
     * @param dir the input file or directory
     * @throws eu.digitisation.input.WarningException
     * @throws eu.digitisation.input.SchemaLocationException
     */
Extract words from a file
@param dir the input file or directory
@throws eu.digitisation.input.WarningException
@throws eu.digitisation.input.SchemaLocationException
Extract words from a file @param dir the input file or directory @throws eu . digitisation . input . WarningException @throws eu . digitisation . input . SchemaLocationException
public void add(File dir) throws WarningException, SchemaLocationException {
        if (dir.isDirectory()) {
            addFiles(dir.listFiles());
        } else {
            File[] files = {dir};
            addFiles(files);
        }
    }
public void add ( File dir ) throws WarningException , SchemaLocationException { if ( dir . isDirectory ( ) ) { addFiles ( dir . listFiles ( ) ) ; } else { File [ ] files = { dir } ; addFiles ( files ) ; } }
Extract words from a file
 @param dir the input file or directory
 @throws eu.digitisation.input.WarningException
 @throws eu.digitisation.input.SchemaLocationException
Extract words from a file @param dir the input file or directory @throws eu . digitisation . input . WarningException @throws eu . digitisation . input . SchemaLocationException