|
Public Types |
| typedef BilexMTree | SyntaxTree |
| | Syntax Tree.
|
| enum | HeirLayout { NODELTAS,
CROSSWAYS,
WHOLEDIM,
ONEDELTA
} |
Static Public Member Functions |
| static void | InitBilexMTreeData (BilexMTreeData &data) |
| | Initializes the BilexMTreeData.
|
| static void | printBilexMTree (ostream &out, BilexMTree::iterator it, const BilexMTree &tr) |
| | Prints a subtree.
|
| static void | flipTree (BilexMTree &tree) |
| | reverse the dimensions.
|
| static void | flipTree_helper (BilexMTree::iterator it) |
| | reverse the dimensions helper.
|
| static void | delexTree (BilexMTree &tree) |
| | delexicalize the tree (hack of setting to 0).
|
| static void | delexTree_helper (BilexMTree::iterator it) |
| | helper for delexicalization.
|
| static void | extractTLinks (BilexMTree &tree, Histogram< TLink > &w2wHist) |
| | extract the TLinks from this tree and return them in a histogram
|
| static void | extractTLinks_helper (BilexMTree::iterator it, Histogram< TLink > &w2wHist) |
| | helper to extract tlinks
|
| static BilexMTree::HeirLayout | getCaseNumber (TLink &antTLink1, TLink &antTLink2, int &posDelta) |
| static void | indentPrint (ostream &out, const BilexMTree &tr, vector< StringVocabulary * > ntsets, vector< StringVocabulary * > terminalSets, bool ptbII=false, bool newline=true) |
| static void | indentPrint_helper (ostream &, const BilexMTree &tr, BilexMTree::iterator it, vector< StringVocabulary * > ntsets, vector< StringVocabulary * > terminalSets, int ind, bool ptbII=false, bool newline=true) |
| static void | printTxtBilexMTree (ostream &out, const BilexMTree &tr, vector< StringVocabulary * > ntsets, vector< StringVocabulary * > terminalSets, bool ptbII=false) |
| static void | printTxtBilexMTree_helper (ostream &, const BilexMTree &tr, BilexMTree::iterator it, vector< StringVocabulary * > ntsets, vector< StringVocabulary * > terminalSets, bool ptbII=false) |
| static void | print (ostream &out, const BilexMTreeData &data, vector< StringVocabulary * > ntsets, vector< StringVocabulary * > terminalsets, bool ptbII) |
| static void | readBilexMTreeTxt (istream &in, BilexMTree::iterator it, BilexMTree &tr, vector< StringVocabulary * > &ntsets, vector< StringVocabulary * > &terminalSets) |
| static void | readBilexMTreeDataTxt (istream &in, BilexMTreeData &data, vector< StringVocabulary * > &ntsets, vector< StringVocabulary * > &terminalSets) |
| static void | readBilexMTree (istream &in, BilexMTree::iterator it, BilexMTree &tr) |
| static void | positionTree2LexTree (BilexMTree &tr, const SentenceTuple &snt) |
| | Converts a positionTree to a Multitree.
|
| static void | lexTree2PositTree (BilexMTree &tr, BilexMTree::iterator root) |
| static void | getLeftIters (BilexMTree::iterator &tr, DIMTYPE &d, vector< BilexMTree::iterator > &ret) |
| static SentenceTuple | yield (const BilexMTree &st) |
| | Gets the yield of the BilexMTree and returns it in a SentenceTuple.
|
| static void | yield_helper (ObservationSequence< Terminal > &os, BilexMTree::iterator it, unsigned int segment, DIMTYPE d) |
| | recursive helper function for yield
|
| static void | removeUnaryBranch (BilexMTree &tr, vector< StringVocabulary * > synCatVcbs=vector< StringVocabulary * >()) |
| static void | removeCharniakDummyRoot (BilexMTree &tree) |
| static void | deNull (BilexMTree &parse, BilexMTree::iterator it) |
| | Remove all the nulls in a MONOLINGUAL parse, and change the null head accordingly. Note that the resulting parse might contain unary.
|
| static void | copySynCats (BilexMTree &parse) |
| static void | extendUnary (BilexMTree &tr, BilexMTree::iterator it, StringVocabulary &synCatVcb) |
| static void | removeDummyNodes (BilexMTree &) |
| static void | naturalize (BilexMTree &parse, StringVocabulary &synCatVcb) |
| static bool | compare (const BilexMTree &tr1, const BilexMTree &tr2, vector< StringVocabulary * > ntset, vector< StringVocabulary * > tset) |
| static bool | compare (const BilexMTree &tr1, const BilexMTree::iterator i, const BilexMTree &tr2, const BilexMTree::iterator j, vector< StringVocabulary * > ntset, vector< StringVocabulary * > tset) |
| | Helper.
|
| static void | propogatePOS (BilexMTree &tr, BilexMTree::iterator it) |
| | Propagate the POS upward until the root.
|
| static void | extractDependencyTree (BilexMTree &tr, BilexMTree::iterator it) |
| static void | toDependencyTree (BilexMTree &tr) |
| static void | delexicalize (BilexMTree &tr, Terminal &dummy, SynCat &dummyNT, SynCat &inactiveNT) |
| | Replace the lexical heads of all nonterminals with the dummy terminal.
|
| static BilexMTree & | assign (BilexMTree &dest, const BilexMTree &source) |
| | Assignment of trees.
|
| static void | assign_helper (BilexMTree &dest, BilexMTree::iterator i, const BilexMTree &source, BilexMTree::iterator j) |
| static bool | isBasePhrase (BilexMTree::iterator &it) |
| static void | flatten (BilexMTree::iterator it, BilexMTree &tr) |
| static void | word2TagMap (BilexMTree &tr, hash_map< Terminal, set< SynCat > > &mapping, DIMTYPE d) |
| static void | makeSNT (BilexMTree::iterator &tr, DIMTYPE &d, SentenceTuple &snt) |
| static void | tags (BilexMTree &tr, HASHNS::hash_set< SynCat > &tagset, DIMTYPE d) |
| static void | word2TagMap (BilexMTree &tr, vector< hash_map< Terminal, set< SynCat > > > &mapping) |
| static void | reintNTs (BilexMTree &tr, vector< StringVocabulary * > newNtVcb, vector< StringVocabulary * > oldNtVcb, vector< StringVocabulary * > newTVcb, vector< StringVocabulary * > oldTVcb) |
| static void | indent (ostream &out, size_t numsp) |
| static void | reintNTs (BilexMTree &tr, vector< StringVocabulary * > newNtVcb, vector< StringVocabulary * > oldNtVcb) |
| static vector< string > | denest (const string s) |
Friends |
| istream & | operator>> (istream &, BilexMTree &) |
| | Input of a multitree.
|
| ostream & | operator<< (ostream &, const BilexMTree &) |
| | Output of a multitree.
|
| istream & | operator>> (istream &, BilexMTreeData &) |
| ostream & | operator<< (ostream &, const BilexMTreeData &) |
| | BilexMTreeData output.
|
| bool | operator< (const BilexMTree::iterator it1, const BilexMTree::iterator it2) |
| | The order of Kids.
|
| bool | operator< (const BilexMTreeData &t1, const BilexMTreeData &t2) |
Classes |
| class | BasePhrasePredicate |
| class | NodePredicate |