Parsing Engine

danbikel.parser
Class PrintDisn

java.lang.Object
  extended bydanbikel.parser.PrintDisn

public class PrintDisn
extends Object

Provides a single static method, printLogProbDisn, as well as a main(String[]) method, to print a log-probability distribution for a particular event in a particular model of a model collection.


Method Summary
static void main(String[] args)
          Prints an event's log-probability distribution to an output file.
static void printLogProbDisn(PrintWriter writer, ModelCollection mc, Model model, int level, Event hist, Set futures, Transition tmpTrans)
          Prints the log-probability distribution of the specified event at the specified back-off level of the specified model to the specified writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

printLogProbDisn

public static void printLogProbDisn(PrintWriter writer,
                                    ModelCollection mc,
                                    Model model,
                                    int level,
                                    Event hist,
                                    Set futures,
                                    Transition tmpTrans)
Prints the log-probability distribution of the specified event at the specified back-off level of the specified model to the specified writer.

Parameters:
writer - the writer to which to print a log-probability distribution
mc - the model collection containing the specified model
model - the model from which an event's log-probability distribution is to be printed
level - the back-off level of the specified event
hist - the event whose distribution is to be printed
futures - the set of futures for the specified history
tmpTrans - a temporary storage object used during the invocation of this method

main

public static void main(String[] args)
Prints an event's log-probability distribution to an output file.

Parameters:
args - a list of five arguments:
 usage: <derived data filename> <back-off level>
        <structure class name> <event> <output filename>
 

Parsing Engine

Author: Dan Bikel.