|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.nlp.ie.pcfg.GLUtil
Grammar/Lexicon Utility. Provides basic utility operations for generating grammars and lexicons
Field Summary | |
static boolean |
fancy
outdated |
Constructor Summary | |
GLUtil()
|
Method Summary | |
static List |
GetListRules(List trees,
boolean isLex)
Gets a list grammar or list lexicon from a list of trees. |
static List |
GetProbGrammar(List trees)
Gets a probabilistic grammar from the list of trees. |
static List |
GetUniformGrammar(Tree tree,
List tagCombinations)
Gets a uniform grammar for a given tree. |
static List |
GetUniformLexicon(Tree tree,
List tagCombinations)
Gets a uniform lexicon for a given tree. |
static List |
MixRules(HashMap rules1,
List rules2,
double p)
Calculates the union of two sets of rules (and interpolates probabilities linearly). |
static List |
MixRules(HashMap rules1,
List rules2,
double p,
double scaleFactor)
Calculates the union of two sets of rules (and interpolates probabilities linearly). |
static List |
MixRules(List rules1,
List rules2,
double p)
Calculates the union of two sets of rules (and interpolates probabilities linearly). |
static List |
MixRules(List rules1,
List rules2,
double p,
double scaleFactor)
Calculates the union of two sets of rules (and interpolates probabilities linearly). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean fancy
Constructor Detail |
public GLUtil()
Method Detail |
public static List GetUniformGrammar(Tree tree, List tagCombinations)
public static List GetUniformLexicon(Tree tree, List tagCombinations)
public static List GetProbGrammar(List trees) throws IOException
IOException
public static List GetListRules(List trees, boolean isLex) throws IOException
IOException
public static List MixRules(HashMap rules1, List rules2, double p, double scaleFactor)
public static List MixRules(HashMap rules1, List rules2, double p)
public static List MixRules(List rules1, List rules2, double p, double scaleFactor)
public static List MixRules(List rules1, List rules2, double p)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |