edu.stanford.nlp.util.FileProcessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stanford-parser Show documentation
Show all versions of stanford-parser Show documentation
Stanford Parser processes raw text in English, Chinese, German, Arabic, and French, and extracts constituency parse trees.
package edu.stanford.nlp.util;
import java.io.File;
/**
* Interface for a Visitor pattern for Files.
* This interface is used by some existing code, but new code should
* probably use FileArrayList or FileSequentialCollection, which fit
* better with the Collections orientation of recent Java releases.
*
* @author Christopher Manning
*/
public interface FileProcessor {
/**
* Apply this predicate to a File
. This method can
* assume the file
is a file and not a directory.
*
* @see FilePathProcessor for traversing directories
*/
public void processFile(File file);
}