Converts MorphAdorner XML output to tab-separated tabular form.

Usage:

java edu.northwestern.at.morphadorner.tools.xmltotab.XMLToTab input.xml output.tab

where input.xml is the input XML file and output.tab is the output tab-separated values file.

Usage:

java edu.northwestern.at.morphadorner.tools.xmltotab.XMLToTab input.xml output.tab

input.xml -- input XML file.
output.tab -- output tab-separated values file.

The attribute values for each "<w>" element in the input XML file are extracted and output to a tab-separated values text file. An output line contains the following information corresponding to a single word "<w>" element.

  1. The work ID.
  2. The permanent word ID.
  3. The corrected original spelling.
  4. The corrected original spelling reversed.
  5. The standard spelling.
  6. The lemma.
  7. The part of speech.
  8. An XPath-like path to this word. The leading work ID and trailing word number are removed from the path.
  9. The end of sentence flag. 1 if this word ends a sentence, 0 otherwise.
  10. The previous word's original spelling.
  11. The next word's original spelling.
  12. Up to 80 characters of text preceding the word in the text.
  13. Up to 80 characters of text following the word in the text.

This tabular representation of an adorned XML text is useful for data checking purposes. The morphological attribute values for each word <w> element appear as columns. The 80 characters (or so) of text on either side of the word allows you to focus on particular part of speech tags and pinpoint errors from the automatic adornment process. The tab separated values may also be used to construct spreadsheets or databases of the individual word information.