edu.northwestern.at.wordhoard.tools
Class BuildPos

java.lang.Object
  extended by edu.northwestern.at.wordhoard.tools.BuildPos

public class BuildPos
extends java.lang.Object

Builds the parts of speech.

Usage:

BuildkPos in dbname username password

in = Path to the parts of speech definition XML input file.

dbname = Database name.

username = MySQL username.

password = MySQL password.


Method Summary
static void checkIds(java.util.ArrayList list)
          Checks numeric Greek ids.
static int getDig(org.w3c.dom.Element el, java.lang.String attr, java.lang.String[] vals)
          Gets a Greek id digit.
static void main(java.lang.String[] args)
          The main program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDig

public static int getDig(org.w3c.dom.Element el,
                         java.lang.String attr,
                         java.lang.String[] vals)
                  throws java.lang.Exception
Gets a Greek id digit.

Parameters:
el - "pos" element.
attr - Attribute name.
vals - Array of attribute values in order 1, 2, 3, ...
Returns:
Digit for attribute value.
Throws:
java.lang.Exception

checkIds

public static void checkIds(java.util.ArrayList list)
                     throws java.lang.Exception
Checks numeric Greek ids.

This method checks all the Greek parts of speech to make sure there are no errors in the numeric encoding of the category values in the tags.

Parameters:
list - Greek parts of speech list.
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
The main program.

Parameters:
args - Command line arguments.