#include <GraphicalBiText.h>
Inheritance diagram for PLearn::GraphicalBiText:
|
Reimplemented from PLearn::Learner. Definition at line 208 of file GraphicalBiText.h. |
|
Definition at line 10 of file GraphicalBiText.cc. References PLearn::sample(). |
|
Definition at line 26 of file GraphicalBiText.cc. |
|
**** SUBCLASS WRITING: **** This method should be redefined in subclasses, to just call inherited::build() and then build_()
Reimplemented from PLearn::Learner. Definition at line 66 of file GraphicalBiText.cc. References build_(). |
|
|
Definition at line 1237 of file GraphicalBiText.cc. References PLearn::SmoothedProbSparseMatrix::checkCondProbIntegrity(), PLearn::ProbSparseMatrix::checkCondProbIntegrity(), PLearn::endl(), pA, pC, pE, pEF, pES, pF, pFS, pH, pHS, pHSupbi, pHupbi, pMC, pS, pSbase, pTC, PLearn::sum(), and PLearn::DoubleAccessSparseMatrix< real >::sumOfElements(). |
|
Definition at line 1189 of file GraphicalBiText.cc. References PLearn::Set::begin(), PLearn::Node::children, PLearn::Set::end(), PLearn::WordNetOntology::getAllCategories(), PLearn::WordNetOntology::getSynset(), ontology, pA, PLearn::Node::parents, pS, pTC, PLearn::SetIterator, and PLearn::Set::size(). Referenced by compute_likelihood(), and init(). |
|
|
Definition at line 1557 of file GraphicalBiText.cc. References PLearn::Set::begin(), commNode, PLearn::Set::end(), PLearn::Set::find(), PLearn::DoubleAccessSparseMatrix< real >::get(), PLearn::WordNetOntology::getAllCategories(), PLearn::WordNetOntology::getSynsetAncestors(), PLearn::Set::insert(), ontology, pC, pES, pFS, PLERROR, pS, pTC, PLearn::TVec< T >::resize(), PLearn::SetIterator, ss_size, and target_word_to_senses. Referenced by print(), sensetag_valid_bitext(), senseTagBitext(), and update_WSD_model(). |
|
|
Definition at line 908 of file GraphicalBiText.cc. References PLearn::Set::begin(), PLearn::Node::children, PLearn::Set::clear(), PLearn::Set::end(), PLearn::WordNetOntology::getSynset(), PLearn::WordNetOntology::isSynset(), node_level, ontology, PLWARNING, pMC, pTC, ROOT_SS_ID, and PLearn::SetIterator. Referenced by init(). |
|
|
Definition at line 960 of file GraphicalBiText.cc. References PLearn::Set::begin(), PLearn::Node::children, PLearn::Set::clear(), PLearn::TVec< T >::clear(), PLearn::Set::end(), PLearn::WordNetOntology::getSynset(), PLearn::WordNetOntology::isSynset(), ontology, pA, pC, PLWARNING, pMC, PLearn::WordNetOntology::printSynset(), pTC, ROOT_SS_ID, and PLearn::SetIterator. Referenced by compute_likelihood(), and init(). |
|
|
Definition at line 814 of file GraphicalBiText.cc. References PLearn::Set::begin(), PLearn::TVec< T >::clear(), distribute_pS_on_ancestors(), PLearn::Set::end(), PLearn::WordNetOntology::getAllCategories(), PLearn::WordNetOntology::isPureCategory(), PLearn::WordNetOntology::isPureSense(), ontology, pS, pTC, and PLearn::SetIterator. Referenced by compute_likelihood(), compute_nodemap(), and init(). |
|
Definition at line 2139 of file GraphicalBiText.cc. References compute_likelihood(), train_bitext_src, and train_bitext_tgt. Referenced by train(). |
|
Definition at line 2144 of file GraphicalBiText.cc. References compute_likelihood(), valid_bitext_src, and valid_bitext_tgt. Referenced by train(). |
|
|
redefine this in subclasses: call declareOption(...) for each option, and then call inherited::declareOptions(options) ( see the declareOption function further down) ex: static void declareOptions(OptionList& ol) { declareOption(ol, "inputsize", &MyObject::inputsize_, OptionBase::buildoption, "the size of the input\n it must be provided"); declareOption(ol, "weights", &MyObject::weights, OptionBase::learntoption, "the learnt model weights"); inherited::declareOptions(ol); } Reimplemented from PLearn::Learner. Definition at line 31 of file GraphicalBiText.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
Definition at line 863 of file GraphicalBiText.cc. References PLearn::Set::begin(), distribute_pS_on_ancestors(), PLearn::Set::end(), PLearn::WordNetOntology::getSynsetParents(), ontology, pTC, PLearn::SetIterator, and PLearn::Set::size(). Referenced by compute_pTC(), and distribute_pS_on_ancestors(). |
|
Definition at line 766 of file GraphicalBiText.cc. References PLearn::Set::begin(), PLearn::Set::end(), PLearn::Set::find(), PLearn::WordNetOntology::getSynset(), PLearn::WordNetOntology::getSynsetAncestors(), PLearn::Set::insert(), ontology, PLearn::Node::parents, PLERROR, pTC, and PLearn::SetIterator. Referenced by init(). |
|
|
|
|
Definition at line 2355 of file GraphicalBiText.cc. References PLearn::pgetline(), sensemap, and PLearn::split(). |
|
|
|
|
|
|
Definition at line 1076 of file GraphicalBiText.cc. References PLearn::Set::begin(), PLearn::Set::end(), PLearn::endl(), PLearn::WordNetOntology::getAllWords(), PLearn::WordNetOntology::getWordSenses(), ontology, PLearn::SetIterator, and source_id_to_word. |
|
Definition at line 1302 of file GraphicalBiText.cc. References PLERROR, printNode(), and ROOT_SS_ID. |
|
Definition at line 1314 of file GraphicalBiText.cc. References PLearn::Set::begin(), PLearn::Node::children, PLearn::color(), PLearn::Set::end(), PLearn::endl(), PLearn::DoubleAccessSparseMatrix< real >::get(), PLearn::WordNetOntology::getSynset(), PLearn::WordNetOntology::getSynsetWordDescendants(), PLearn::Node::gloss, ontology, pA, pC, pES, pFS, pMC, printNode(), pS, pTC, PLearn::SetIterator, source_id_to_word, PLearn::Node::syns, target_id_to_word, and target_wsd_voc. Referenced by printHierarchy(), and printNode(). |
|
|
|
Definition at line 1040 of file GraphicalBiText.cc. References PLearn::Set::begin(), PLearn::Node::children, PLearn::Set::end(), PLearn::endl(), PLearn::Set::find(), PLearn::WordNetOntology::getSenseKey(), PLearn::WordNetOntology::getSynset(), PLearn::WordNetOntology::getWordSenses(), PLearn::WordNetOntology::isSynset(), ontology, pSE, pTC, sensemap, and PLearn::SetIterator. Referenced by compute_nodemap(). |
|
Definition at line 2432 of file GraphicalBiText.cc. |
|
Definition at line 2427 of file GraphicalBiText.cc. |
|
|
|
|
*** SUBCLASS WRITING: *** Does the actual training. Subclasses must implement this method. The method should upon entry, call setTrainingSet(training_set); Make sure that a if(measure(step, objective_value)) is done after each training step, and that training is stopped if it returned true Implements PLearn::Learner. Definition at line 2380 of file GraphicalBiText.cc. References check_consitency(), compute_train_likelihood(), compute_valid_likelihood(), PLearn::VMat::length(), n_epoch, test_WSD(), PLearn::tostring(), update_WSD_model(), wsd_test, wsd_train, wsd_valid, and wsd_valid2. |
|
|
|
|
*** SUBCLASS WRITING: *** Uses a trained decider on input, filling output. If the cost should also be computed, then the user should call useAndCost instead of this method. Implements PLearn::Learner. Definition at line 215 of file GraphicalBiText.h. References PLERROR. |
|
Definition at line 175 of file GraphicalBiText.h. Referenced by build_(), and compute_likelihood(). |
|
Definition at line 176 of file GraphicalBiText.h. Referenced by build_(), and compute_likelihood(). |
|
Definition at line 115 of file GraphicalBiText.h. Referenced by build_(), and test_WSD(). |
|
Definition at line 91 of file GraphicalBiText.h. Referenced by build_(), compute_BN_likelihood(), compute_efs_likelihood(), and init(). |
|
Definition at line 47 of file GraphicalBiText.h. |
|
Definition at line 113 of file GraphicalBiText.h. Referenced by build_(), and computeKL(). |
|
Definition at line 41 of file GraphicalBiText.h. Referenced by train(). |
|
Definition at line 124 of file GraphicalBiText.h. Referenced by init(), init_WSD(), and test_WSD(). |
|
Definition at line 40 of file GraphicalBiText.h. |
|
Definition at line 39 of file GraphicalBiText.h. |
|
Definition at line 80 of file GraphicalBiText.h. Referenced by build_(), compute_BN_likelihood(), and compute_likelihood(). |
|
Definition at line 105 of file GraphicalBiText.h. |
|
Definition at line 86 of file GraphicalBiText.h. Referenced by build_(), compute_BN_likelihood(), compute_likelihood(), and init(). |
|
Definition at line 135 of file GraphicalBiText.h. Referenced by build_(), init_WSD(), and update_WSD_model(). |
|
Definition at line 136 of file GraphicalBiText.h. Referenced by build_(), and update_WSD_model(). |
|
Definition at line 83 of file GraphicalBiText.h. Referenced by build_(), compute_BN_likelihood(), compute_likelihood(), and init(). |
|
Definition at line 141 of file GraphicalBiText.h. Referenced by build_(), and init_WSD(). |
|
Definition at line 143 of file GraphicalBiText.h. Referenced by build_(), and update_WSD_model(). |
|
Definition at line 120 of file GraphicalBiText.h. Referenced by compute_node_level(). |
|
Definition at line 119 of file GraphicalBiText.h. Referenced by compute_nodemap(). |
|
Definition at line 129 of file GraphicalBiText.h. Referenced by build_(), compute_BN_likelihood(), and compute_likelihood(). |
|
Definition at line 109 of file GraphicalBiText.h. |
|
Definition at line 111 of file GraphicalBiText.h. Referenced by build_(), compute_BN_likelihood(), and compute_likelihood(). |
|
|
Definition at line 66 of file GraphicalBiText.h. Referenced by print(), sensetag_valid_bitext(), senseTagBitext(), test_WSD(), and update_WSD_model(). |
|
Definition at line 79 of file GraphicalBiText.h. Referenced by build_(), check_consitency(), check_set_pA(), compute_BN_likelihood(), compute_likelihood(), compute_pMC(), init(), and printNode(). |
|
Definition at line 75 of file GraphicalBiText.h. Referenced by build_(), check_consitency(), compute_BN_likelihood(), compute_efs_likelihood(), compute_pMC(), and printNode(). |
|
Definition at line 102 of file GraphicalBiText.h. Referenced by build_(), check_consitency(), compute_likelihood(), and init(). |
|
Definition at line 126 of file GraphicalBiText.h. Referenced by build_(), init_WSD(), and update_WSD_model(). |
|
Definition at line 106 of file GraphicalBiText.h. Referenced by build_(), check_consitency(), compute_likelihood(), and init(). |
|
Definition at line 87 of file GraphicalBiText.h. Referenced by build_(), check_consitency(), compute_BN_likelihood(), compute_efs_likelihood(), compute_likelihood(), init(), printNode(), and test_WSD(). |
|
Definition at line 137 of file GraphicalBiText.h. Referenced by build_(), init_WSD(), and test_WSD(). |
|
Definition at line 138 of file GraphicalBiText.h. Referenced by build_(), init_WSD(), and update_WSD_model(). |
|
Definition at line 100 of file GraphicalBiText.h. Referenced by build_(), check_consitency(), compute_likelihood(), and init(). |
|
Definition at line 84 of file GraphicalBiText.h. Referenced by build_(), check_consitency(), compute_BN_likelihood(), compute_efs_likelihood(), compute_likelihood(), init(), and printNode(). |
|
Definition at line 131 of file GraphicalBiText.h. Referenced by build_(), check_consitency(), and init_WSD(). |
|
Definition at line 132 of file GraphicalBiText.h. Referenced by build_(), and init_WSD(). |
|
Definition at line 142 of file GraphicalBiText.h. Referenced by build_(), check_consitency(), init_WSD(), and test_WSD(). |
|
Definition at line 144 of file GraphicalBiText.h. Referenced by build_(), check_consitency(), init_WSD(), test_WSD(), and update_WSD_model(). |
|
Definition at line 133 of file GraphicalBiText.h. Referenced by build_(), check_consitency(), and update_WSD_model(). |
|
Definition at line 74 of file GraphicalBiText.h. Referenced by build_(), check_consitency(), compute_node_level(), compute_pMC(), and printNode(). |
|
Definition at line 72 of file GraphicalBiText.h. Referenced by build_(), check_consitency(), check_set_pA(), compute_BN_likelihood(), compute_efs_likelihood(), compute_likelihood(), compute_pTC(), init(), and printNode(). |
|
Definition at line 127 of file GraphicalBiText.h. Referenced by build_(), check_consitency(), init_WSD(), and test_WSD(). |
|
Definition at line 110 of file GraphicalBiText.h. Referenced by build_(), compute_nodemap(), computeKL(), init(), and set_nodemap(). |
|
Definition at line 112 of file GraphicalBiText.h. Referenced by build_(), compute_likelihood(), and computeKL(). |
|
Definition at line 128 of file GraphicalBiText.h. Referenced by build_(). |
|
Definition at line 77 of file GraphicalBiText.h. Referenced by build_(), check_consitency(), check_set_pA(), compute_BN_likelihood(), compute_efs_likelihood(), compute_node_level(), compute_nodemap(), compute_pMC(), compute_pTC(), distribute_pS_on_ancestors(), getDeepestCommonAncestor(), init(), printNode(), and set_nodemap(). |
|
Definition at line 53 of file GraphicalBiText.h. Referenced by init(). |
|
Definition at line 50 of file GraphicalBiText.h. Referenced by init(). |
|
Definition at line 52 of file GraphicalBiText.h. Referenced by init(). |
|
Definition at line 51 of file GraphicalBiText.h. Referenced by init(). |
|
Definition at line 93 of file GraphicalBiText.h. Referenced by init(). |
|
Definition at line 149 of file GraphicalBiText.h. Referenced by build_(). |
|
Definition at line 118 of file GraphicalBiText.h. Referenced by compute_nodemap(), init(), init_WSD(), loadSensemap(), set_nodemap(), test_WSD(), and update_WSD_model(). |
|
Definition at line 48 of file GraphicalBiText.h. |
|
Definition at line 49 of file GraphicalBiText.h. Referenced by init(), and test_WSD(). |
|
Definition at line 62 of file GraphicalBiText.h. Referenced by init(). |
|
Definition at line 54 of file GraphicalBiText.h. Referenced by init(). |
|
Definition at line 154 of file GraphicalBiText.h. Referenced by build_(), compute_likelihood(), print(), print_sensemap(), printNode(), sensetag_valid_bitext(), senseTagBitext(), test_WSD(), and update_WSD_model(). |
|
Definition at line 42 of file GraphicalBiText.h. Referenced by build_(). |
|
Definition at line 43 of file GraphicalBiText.h. Referenced by build_(). |
|
Definition at line 156 of file GraphicalBiText.h. Referenced by build_(). |
|
Definition at line 155 of file GraphicalBiText.h. Referenced by build_(), loadBitext(), and update_WSD_model(). |
|
Definition at line 148 of file GraphicalBiText.h. Referenced by build_(), compute_likelihood(), init(), and test_WSD(). |
|
Definition at line 150 of file GraphicalBiText.h. Referenced by build_(), compute_BN_likelihood(), compute_efs_likelihood(), compute_likelihood(), and init(). |
|
Definition at line 181 of file GraphicalBiText.h. Referenced by build_(). |
|
Definition at line 179 of file GraphicalBiText.h. Referenced by build_(), and compute_BN_likelihood(). |
|
Definition at line 180 of file GraphicalBiText.h. Referenced by build_(), and compute_BN_likelihood(). |
|
Definition at line 161 of file GraphicalBiText.h. |
|
Definition at line 159 of file GraphicalBiText.h. Referenced by build_(), compute_likelihood(), init(), loadBitext(), print(), printNode(), sensetag_valid_bitext(), senseTagBitext(), and update_WSD_model(). |
|
Definition at line 44 of file GraphicalBiText.h. Referenced by build_(). |
|
Definition at line 162 of file GraphicalBiText.h. Referenced by build_(), and loadBitext(). |
|
Definition at line 160 of file GraphicalBiText.h. Referenced by build_(), and loadBitext(). |
|
Definition at line 96 of file GraphicalBiText.h. Referenced by compute_BN_likelihood(), compute_efs_likelihood(), and init(). |
|
Definition at line 164 of file GraphicalBiText.h. Referenced by build_(), compute_likelihood(), init(), printNode(), sensetag_valid_bitext(), senseTagBitext(), and update_WSD_model(). |
|
Definition at line 165 of file GraphicalBiText.h. Referenced by build_(), compute_likelihood(), init(), and print(). |
|
Definition at line 169 of file GraphicalBiText.h. Referenced by compute_train_likelihood(), init(), loadBitext(), senseTagBitext(), and update_WSD_model(). |
|
Definition at line 168 of file GraphicalBiText.h. Referenced by compute_train_likelihood(), init(), loadBitext(), senseTagBitext(), and update_WSD_model(). |
|
Definition at line 45 of file GraphicalBiText.h. Referenced by build_(). |
|
Definition at line 64 of file GraphicalBiText.h. Referenced by update_WSD_model(). |
|
Definition at line 171 of file GraphicalBiText.h. Referenced by compute_valid_likelihood(), loadBitext(), and sensetag_valid_bitext(). |
|
Definition at line 170 of file GraphicalBiText.h. Referenced by compute_valid_likelihood(), loadBitext(), and sensetag_valid_bitext(). |
|
Definition at line 46 of file GraphicalBiText.h. Referenced by build_(). |
|
Definition at line 38 of file GraphicalBiText.h. Referenced by init(), init_WSD(), test_WSD(), and update_WSD_model(). |
|
Definition at line 61 of file GraphicalBiText.h. |
|
Definition at line 58 of file GraphicalBiText.h. Referenced by init(), init_WSD(), and train(). |
|
Definition at line 59 of file GraphicalBiText.h. |
|
Definition at line 60 of file GraphicalBiText.h. |