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
tokeniser
private DefaultTokeniser tokeniser
gazetteer
private DefaultGazetteer gazetteer
splitter
private SentenceSplitter splitter
tagger
private POSTagger tagger
transducer
private ANNIETransducer transducer
orthomatcher
private OrthoMatcher orthomatcher
setTransfer
private AnnotationSetTransfer setTransfer
annotDeletePR
private AnnotationDeletePR annotDeletePR
processMode
private boolean processMode
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
GateException
setStartDir
public void setStartDir(File newDir)
setProcessMode
public void setProcessMode(boolean mode)
setDSPath
public void setDSPath(String path)
saveFiles
protected void saveFiles(List files)
processDocument
protected void processDocument(Document doc)