Cambridge SMT System
|
Contains sentence-specific grammar data. More...
Go to the source code of this file.
Classes | |
struct | ucam::hifst::SentenceSpecificGrammarData |
Structure for sentence-specific grammar Rules will be queried by cyk per position and number of elements in the right-hand-side (source) of the rule Therefore indices are stored in this fashion so queries can be done directly. Note: a more efficient implementation could be to store these rule indices in a structure much closer even to the cyk grid. For instance, if an instanced pattern has never been seen below span 5, there is no need for the cyk to query and reject it. More... | |
Namespaces | |
ucam | |
ucam::hifst | |
Functions | |
bool | ucam::hifst::phraseIsTerminalWord (const std::string &phrase) |
Contains sentence-specific grammar data.
Definition in file data.ssgrammar.hpp.