|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.northwestern.at.morphadorner.tools.findteitextlanguage.FindTEITextLanguage
public class FindTEITextLanguage
Find languages for TEI-encoded text.
| Nested Class Summary | |
|---|---|
static class |
FindTEITextLanguage.DocData
Hold language recognition results for one document. |
| Field Summary | |
|---|---|
protected static int |
currentFileNumber
Current document. |
protected static int |
filesToProcess
Number of documents to process. |
protected static int |
INITPARAMS
# params before input file specs. |
protected static int |
longestTitle
Longest document title. |
protected static java.util.Set<FindTEITextLanguage.DocData> |
outputSet
Holds sorted work titles and languages output. |
protected static javax.xml.parsers.SAXParserFactory |
parserFactory
SAX parser factory. |
protected static LanguageRecognizer |
recognizer
Language recognizer. |
| Constructor Summary | |
|---|---|
FindTEITextLanguage()
|
|
| Method Summary | |
|---|---|
protected static boolean |
initialize(java.lang.String[] args)
Initialize. |
static void |
main(java.lang.String[] args)
Main program. |
protected static void |
outputResults(java.lang.String outputFileName)
Output results to tabular file. |
protected static void |
printResults()
Print results. |
protected static int |
processFiles(java.lang.String[] args)
Process files. |
protected static void |
processOneFile(java.lang.String xmlFileName)
Process one file. |
protected static void |
terminate(int filesProcessed,
long processingTime)
Terminate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static LanguageRecognizer recognizer
protected static final int INITPARAMS
protected static java.util.Set<FindTEITextLanguage.DocData> outputSet
protected static javax.xml.parsers.SAXParserFactory parserFactory
protected static int filesToProcess
protected static int currentFileNumber
protected static int longestTitle
| Constructor Detail |
|---|
public FindTEITextLanguage()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - Program parameters.protected static boolean initialize(java.lang.String[] args)
protected static void processOneFile(java.lang.String xmlFileName)
xmlFileName - Input file name to check for language.protected static int processFiles(java.lang.String[] args)
protected static void printResults()
throws java.lang.Exception
java.lang.Exception
protected static void outputResults(java.lang.String outputFileName)
throws java.lang.Exception
outputFileName - Output file name.
java.lang.Exception
protected static void terminate(int filesProcessed,
long processingTime)
filesProcessed - Number of files processed.processingTime - Processing time in seconds.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||