gate.util
Class CorpusSaver
java.lang.Object
gate.util.CorpusSaver
- public class CorpusSaver
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
private static final boolean DEBUG
- See Also:
- Constant Field Values
startDir
private File startDir
- The directory from which we should generate/evaluate the corpus
currDir
private File currDir
ds
private DataStore ds
theCorpus
private Corpus theCorpus
annotSetName
private String annotSetName
dsPath
private String dsPath
application
private Controller application
applicationFile
private File applicationFile
processMode
private boolean processMode
saveMode
private boolean saveMode
CorpusSaver
public CorpusSaver()
init
public void init()
initPRs
public void initPRs()
execute
public void execute()
execute
public void execute(File dir)
main
public static void main(String[] args)
throws GateException
- Throws:
GateException
setStartDir
public void setStartDir(File newDir)
setProcessMode
public void setProcessMode(boolean mode)
getProcessMode
public boolean getProcessMode()
setSaveMode
public void setSaveMode(boolean mode)
getSaveMode
public boolean getSaveMode()
setDSPath
public void setDSPath(String path)
setApplicationFile
public void setApplicationFile(File newAppFile)
saveFiles
protected void saveFiles(List files)
processDocument
protected void processDocument(Document doc)