bg.bas.dcl.CorpusTools
Class CorpusXMLVerifier

java.lang.Object
  extended by bg.bas.dcl.CorpusTools.CorpusXMLVerifier

public class CorpusXMLVerifier
extends java.lang.Object


Field Summary
static IndexLexicon lemmaLexicon
           
static IndexLexicon tokenLexicon
           
 
Constructor Summary
CorpusXMLVerifier()
           
 
Method Summary
static java.util.List<java.io.File> getFileListing(java.io.File aStartingDir)
          Recursively walk a directory tree and return a List of all Files found; the List is sorted using File.compareTo().
static void main(java.lang.String[] args)
           
static void removeIncorrectXML(java.util.List<java.io.File> files)
           
static void repairXML(java.util.List<java.io.File> files)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tokenLexicon

public static IndexLexicon tokenLexicon

lemmaLexicon

public static IndexLexicon lemmaLexicon
Constructor Detail

CorpusXMLVerifier

public CorpusXMLVerifier()
Method Detail

main

public static void main(java.lang.String[] args)
Parameters:
args -

repairXML

public static void repairXML(java.util.List<java.io.File> files)

removeIncorrectXML

public static void removeIncorrectXML(java.util.List<java.io.File> files)

getFileListing

public static java.util.List<java.io.File> getFileListing(java.io.File aStartingDir)
                                                   throws java.io.FileNotFoundException
Recursively walk a directory tree and return a List of all Files found; the List is sorted using File.compareTo().

Parameters:
aStartingDir - is a valid directory, which can be read.
Throws:
java.io.FileNotFoundException