|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.nlp.ie.pcfg.IEMan
Information Extraction Manager. Performs information extraction. Must be fed training data. Each IEMan has its own IE parameters (e.g., smoothing ratios). Altering these parameters allows one to run comparisons between two IEMans on the same data
Field Summary | |
List |
g
not currently in use |
double |
grammarP1
the mixing ratio between gram4 (the lexicalized, tagged grammar) and gram3 (the tagged grammar) |
double |
grammarP2
the mixing ratio between gram3 (the unlexicalized, tagged grammar) and the uniform grammar (see GLUtil) |
List |
l
|
double |
lexiconP
the mixing ratio between the PNPC lexicon (see PNPC, XPNPC) and the uniform lexicon (see GLUtil) |
int |
maxTagCombinationSize
the maximum number of tags that can be identified per sentence |
int |
numAfterthoughts
not used currently |
boolean |
repeat
if repeat, the program reads the PNPC lexicon from rulesFN rather than generating it again. |
static boolean |
sly
|
Constructor Summary | |
IEMan()
constructs a new IEMan. |
Method Summary | |
List |
GetBestTagSets(Tree tree,
int numParses)
gets the "numParses" best tag sets corresponding to a given tree. |
List |
GetGrammar(Tree tree)
Gets the mixed grammar that will be used to parse this tree. |
List |
GetLexicon(Tree tree)
Gets the mixed lexicon that will be used to parse this tree. |
static HashMap |
GetMap(List rules)
creates a hashmap that links rules (without probabilties) to their XRules (rules + probabilities). |
List |
GetMissingGrammar(Tree tree)
no longer used |
static void |
main(String[] args)
Analyzes training data and produces formatted grammars and lexicons. |
void |
ScoreTagSet(Tree tree,
XTagSet tagSet)
Calculates the probability that this tagset corresponds to this tree. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean sly
public double grammarP1
public double grammarP2
public double lexiconP
public int numAfterthoughts
public int maxTagCombinationSize
public boolean repeat
public List g
public List l
Constructor Detail |
public IEMan() throws IOException
Method Detail |
public static HashMap GetMap(List rules)
public List GetGrammar(Tree tree) throws IOException
IOException
public List GetLexicon(Tree tree) throws IOException
IOException
public void ScoreTagSet(Tree tree, XTagSet tagSet)
public List GetBestTagSets(Tree tree, int numParses) throws IOException
IOException
public List GetMissingGrammar(Tree tree)
public static void main(String[] args) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |