edu.stanford.nlp.ie.pcfg
Class XPNPC

java.lang.Object
  |
  +--edu.stanford.nlp.ie.pcfg.XPNPC

public class XPNPC
extends Object

Contains numerous PNPCs which it uses to determine the probable classification of different types of words. In particular, contains one PNPC for each word type (e.g., NNP, VP, ...). The PNPC for each word type has a category for each possible tag combination (e.g, NNP[{}], NNP[{purchaser}], ...).


Constructor Summary
XPNPC(List lexicon)
          creates a new XPNPC.
 
Method Summary
 List GetLexicon(Tree tree)
          Calculates a probability for each lexical rule that may have been used to generate this tree.
static void main(String[] args)
          tests the XPNPC functionality.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPNPC

public XPNPC(List lexicon)
creates a new XPNPC.

Method Detail

GetLexicon

public List GetLexicon(Tree tree)
                throws IOException
Calculates a probability for each lexical rule that may have been used to generate this tree. Process: 1) Lists all of the untagged lexical rules used to generate the tree. 2) Expands untagged lexical rules into lexical rules (e.g., NNP -> "Amazon" become {NNP[{}] -> "Amazon", NNP[{purchaser}] -> "Amazon", ...}

IOException

main

public static void main(String[] args)
                 throws Exception
tests the XPNPC functionality. outdated.

Exception


Stanford NLP Group