edu.cmu.minorthird.text
Class LabeledDirectory

java.lang.Object
  extended by edu.cmu.minorthird.text.LabeledDirectory
All Implemented Interfaces:
CommandLineProcessor.Configurable

public class LabeledDirectory
extends java.lang.Object
implements CommandLineProcessor.Configurable


Nested Class Summary
 class LabeledDirectory.MyCLP
          A CommandLineProcessor for LabeledDirectory.
 
Constructor Summary
LabeledDirectory()
           
LabeledDirectory(java.io.File dir)
           
LabeledDirectory(java.lang.String s)
           
 
Method Summary
 CommandLineProcessor getCLP()
          Return a CommandLineProcessor that be used to configure a LabeledDirectory
 MonotonicTextLabels getTextLabels(java.io.File f)
          Get the TextLabels which annotates this file.
static void main(java.lang.String[] args)
          A simple main program that allows you to add annotations to a directory of text files.
 void reLabelText()
          Re-label the text files in the directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabeledDirectory

public LabeledDirectory()

LabeledDirectory

public LabeledDirectory(java.lang.String s)

LabeledDirectory

public LabeledDirectory(java.io.File dir)
Method Detail

getCLP

public CommandLineProcessor getCLP()
Return a CommandLineProcessor that be used to configure a LabeledDirectory

Specified by:
getCLP in interface CommandLineProcessor.Configurable

getTextLabels

public MonotonicTextLabels getTextLabels(java.io.File f)
                                  throws java.io.IOException
Get the TextLabels which annotates this file.

Throws:
java.io.IOException

reLabelText

public void reLabelText()
                 throws java.io.IOException
Re-label the text files in the directory. This uses lists of annotators and 'require' calls that have been set up previously.

Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
A simple main program that allows you to add annotations to a directory of text files.

Throws:
java.io.IOException