public class Unadorn
extends java.lang.Object
Usage:
java edu.northwestern.at.morphadorner.tools.unadorn.Unadorn outputdirectory adorned1.xml adorned2.xml ...
Unadorn replaces <w>, <pc>, and <c> elements with their text contents.
| Modifier and Type | Field and Description |
|---|---|
protected static int |
currentDocNumber
Current document.
|
protected static int |
docsToProcess
Number of documents to process.
|
protected static int |
INITPARAMS
# params before input file specs.
|
protected static java.lang.String |
outputDirectoryName
Output directory name.
|
| Constructor and Description |
|---|
Unadorn() |
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
initialize(java.lang.String[] args)
Initialize.
|
static void |
main(java.lang.String[] args)
Main program.
|
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.
|
protected static final int INITPARAMS
protected static int docsToProcess
protected static int currentDocNumber
protected static java.lang.String outputDirectoryName
public static void main(java.lang.String[] args)
args - Program parameters.protected static boolean initialize(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionprotected static void processOneFile(java.lang.String xmlFileName)
xmlFileName - Input file name to check for
part of speech/lemma mismatches..protected static int processFiles(java.lang.String[] args)
protected static void terminate(int filesProcessed,
long processingTime)
filesProcessed - Number of files processed.processingTime - Processing time in seconds.