edu.stanford.nlp.ie.pnp
Class PnpGenerator

java.lang.Object
  |
  +--edu.stanford.nlp.ie.pnp.PnpGenerator

public class PnpGenerator
extends Object

Generates novel PNPs using a trained PnpClassifier.

See Also:
main(java.lang.String[])

Constructor Summary
PnpGenerator(PnpClassifier pnpc)
          Constructs a new PnpClassifier using the given PnpClassifier to generate novel PNPs.
 
Method Summary
static void main(String[] args)
          Generates random novel PNPs and prints them to stdout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PnpGenerator

public PnpGenerator(PnpClassifier pnpc)
Constructs a new PnpClassifier using the given PnpClassifier to generate novel PNPs.

Method Detail

main

public static void main(String[] args)
Generates random novel PNPs and prints them to stdout.

Usage: java PnpGenerator serialized_pnpc [trainingFile]

If a training file is provided, a new PnpClassifier is trained and serialized as serialized_pnpc before generating the examples. If only the first argument is provided, the given serialized PnpClassifier is loaded and used. This way you can just train once and generate many times quickly.



Stanford NLP Group