A nested pattern map, useful for storing patterns that map to other patterns, which in turn map to values. An example is phrase-translation tables in Machine Translation.
More...
|
| typedef PatternMap< ValueType, ValueHandler, NestedSizeType > | valuetype |
| |
| typedef PatternMap< PatternMap< ValueType, ValueHandler, NestedSizeType >, PatternStoreValueHandler< PatternMap< ValueType, ValueHandler, NestedSizeType > >, uint64_t >::iterator | iterator |
| |
| typedef PatternMap< PatternMap< ValueType, ValueHandler, NestedSizeType >, PatternStoreValueHandler< PatternMap< ValueType, ValueHandler, NestedSizeType > >, uint64_t >::const_iterator | const_iterator |
| |
| typedef std::unordered_map< Pattern, PatternMap< ValueType, ValueHandler, NestedSizeType > >::iterator | iterator |
| |
| typedef std::unordered_map< Pattern, PatternMap< ValueType, ValueHandler, NestedSizeType > >::const_iterator | const_iterator |
| |
| typedef std::unordered_map< Pattern, PatternMap< ValueType, ValueHandler, NestedSizeType > >::iterator | iterator |
| |
| typedef std::unordered_map< Pattern, PatternMap< ValueType, ValueHandler, NestedSizeType > >::const_iterator | const_iterator |
| |
| typedef std::unordered_map< Pattern, PatternMap< ValueType, ValueHandler, NestedSizeType > >::iterator | iterator |
| |
| typedef std::unordered_map< Pattern, PatternMap< ValueType, ValueHandler, NestedSizeType > >::const_iterator | const_iterator |
| |
|
| | PatternMap () |
| |
| void | insert (const Pattern &pattern, PatternMap< ValueType, ValueHandler, NestedSizeType > &value) |
| |
| void | insert (const Pattern &pattern) |
| |
| bool | has (const Pattern &pattern) const |
| |
| bool | has (const PatternPointer &pattern) const |
| |
| size_t | size () const |
| |
| void | reserve (size_t s) |
| |
| PatternMap< ValueType, ValueHandler, NestedSizeType > & | operator[] (const Pattern &pattern) |
| |
| PatternMap< ValueType, ValueHandler, NestedSizeType > & | operator[] (const PatternPointer &pattern) |
| |
| iterator | begin () |
| |
| const_iterator | begin () const |
| |
| iterator | end () |
| |
| const_iterator | end () const |
| |
| iterator | find (const Pattern &pattern) |
| |
| const_iterator | find (const Pattern &pattern) const |
| |
| iterator | find (const PatternPointer &pattern) |
| |
| const_iterator | find (const PatternPointer &pattern) const |
| |
| bool | erase (const Pattern &pattern) |
| |
| iterator | erase (const_iterator position) |
| |
| | PatternMapStore () |
| |
| virtual | ~PatternMapStore () |
| |
| virtual void | write (std::ostream *out) |
| |
| virtual void | write (std::string filename) |
| |
| void | read (std::istream *in, int MINTOKENS=0, int MINLENGTH=0, int MAXLENGTH=999999, PatternStoreInterface *constrainstore=NULL, bool DONGRAMS=true, bool DOSKIPGRAMS=true, bool DOFLEXGRAMS=true, bool DORESET=false, bool DEBUG=false) |
| |
| void | read (std::string filename, int MINTOKENS=0, int MINLENGTH=0, int MAXLENGTH=999999, PatternStoreInterface *constrainstore=NULL, bool DONGRAMS=true, bool DOSKIPGRAMS=true, bool DOFLEXGRAMS=true, bool DORESET=false, bool DEBUG=false) |
| |
| | PatternStore () |
| |
| virtual | ~PatternStore () |
| |
| virtual void | attachcorpus (unsigned char *corpusstart, unsigned int corpussize) |
| |
| virtual void | attachcorpus (const IndexedCorpus &corpus) |
| |
| virtual void | detachcorpus () |
| |
| unsigned char * | getcorpus () const |
| |
| unsigned int | getcorpussize () const |
| |
| virtual void | use_v1_format () |
| |
| virtual PatternStoreInterface * | getstoreinterface () |
| |
| std::unordered_map< Pattern, PatternMap< ValueType, ValueHandler, NestedSizeType > > | data |
| |
| PatternStoreValueHandler< PatternMap< ValueType, ValueHandler, NestedSizeType > > | valuehandler |
| |
| unsigned char * | corpusstart |
| |
| unsigned int | corpussize |
| |
| unsigned char | classencodingversion |
| |
| int | patterntype |
| |
template<class ValueType, class ValueHandler = BaseValueHandler<ValueType>, class NestedSizeType = uint16_t>
class AlignedPatternMap< ValueType, ValueHandler, NestedSizeType >
A nested pattern map, useful for storing patterns that map to other patterns, which in turn map to values. An example is phrase-translation tables in Machine Translation.