Colibri Core
|
Basic read-only interface for pattern models, abstract base class. More...
#include <interface.h>
Public Member Functions | |
virtual int | getmodeltype () const =0 |
virtual int | getmodelversion () const =0 |
virtual unsigned int | occurrencecount (const Pattern &pattern)=0 |
virtual double | frequency (const Pattern &)=0 |
virtual int | maxlength () const =0 |
virtual int | minlength () const =0 |
virtual unsigned int | types ()=0 |
virtual unsigned int | tokens () const =0 |
virtual PatternStoreInterface * | getstoreinterface () |
virtual int | getmodeltype () const =0 |
virtual int | getmodelversion () const =0 |
virtual unsigned int | occurrencecount (const Pattern &pattern)=0 |
virtual double | frequency (const Pattern &)=0 |
virtual int | maxlength () const =0 |
virtual int | minlength () const =0 |
virtual unsigned int | types ()=0 |
virtual unsigned int | tokens () const =0 |
virtual PatternStoreInterface * | getstoreinterface () |
Public Member Functions inherited from PatternStoreInterface | |
virtual bool | has (const Pattern &) const =0 |
virtual bool | has (const PatternPointer &) const =0 |
virtual size_t | size () const =0 |
virtual bool | has (const Pattern &) const =0 |
virtual bool | has (const PatternPointer &) const =0 |
virtual size_t | size () const =0 |
Basic read-only interface for pattern models, abstract base class.
Basic read-only interface for pattern models, abstract base class.
|
pure virtual |
Returns the number of times the frequency of the pattern in the model, a relative/normalised value
Implemented in PatternModel< ValueType, ValueHandler, MapType, PatternType >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternPointer >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternType >, PatternModel< ValueType, ValueHandler, MapType, PatternPointer >, and PatternSetModel.
|
pure virtual |
Returns the frequency of the pattern in the model, a relative/normalised value
Implemented in PatternModel< ValueType, ValueHandler, MapType, PatternType >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternPointer >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternType >, PatternModel< ValueType, ValueHandler, MapType, PatternPointer >, and PatternSetModel.
|
pure virtual |
Get the type of the model
Implemented in IndexedPatternPointerModel< MapType >, PatternPointerModel< ValueType, ValueHandler, MapType >, IndexedPatternModel< MapType, PatternType >, IndexedPatternModel< MapType, PatternPointer >, PatternModel< ValueType, ValueHandler, MapType, PatternType >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternPointer >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternType >, PatternModel< ValueType, ValueHandler, MapType, PatternPointer >, and PatternSetModel.
|
pure virtual |
Get the type of the model
Implemented in IndexedPatternPointerModel< MapType >, PatternPointerModel< ValueType, ValueHandler, MapType >, IndexedPatternModel< MapType, PatternType >, IndexedPatternModel< MapType, PatternPointer >, PatternModel< ValueType, ValueHandler, MapType, PatternType >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternPointer >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternType >, PatternModel< ValueType, ValueHandler, MapType, PatternPointer >, and PatternSetModel.
|
pure virtual |
Get the version number of the model
Implemented in IndexedPatternPointerModel< MapType >, PatternPointerModel< ValueType, ValueHandler, MapType >, IndexedPatternModel< MapType, PatternType >, IndexedPatternModel< MapType, PatternPointer >, PatternModel< ValueType, ValueHandler, MapType, PatternType >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternPointer >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternType >, PatternModel< ValueType, ValueHandler, MapType, PatternPointer >, and PatternSetModel.
|
pure virtual |
Get the version number of the model
Implemented in IndexedPatternPointerModel< MapType >, PatternPointerModel< ValueType, ValueHandler, MapType >, IndexedPatternModel< MapType, PatternType >, IndexedPatternModel< MapType, PatternPointer >, PatternModel< ValueType, ValueHandler, MapType, PatternType >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternPointer >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternType >, PatternModel< ValueType, ValueHandler, MapType, PatternPointer >, and PatternSetModel.
|
inlinevirtual |
|
inlinevirtual |
|
pure virtual |
Return the maximum pattern length in this model
Implemented in PatternModel< ValueType, ValueHandler, MapType, PatternType >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternPointer >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternType >, PatternModel< ValueType, ValueHandler, MapType, PatternPointer >, and PatternSetModel.
|
pure virtual |
Return the maximum pattern length in this model
Implemented in PatternModel< ValueType, ValueHandler, MapType, PatternType >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternPointer >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternType >, PatternModel< ValueType, ValueHandler, MapType, PatternPointer >, and PatternSetModel.
|
pure virtual |
Returns the minumum pattern length in this model
Implemented in PatternModel< ValueType, ValueHandler, MapType, PatternType >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternPointer >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternType >, PatternModel< ValueType, ValueHandler, MapType, PatternPointer >, and PatternSetModel.
|
pure virtual |
Returns the minumum pattern length in this model
Implemented in PatternModel< ValueType, ValueHandler, MapType, PatternType >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternPointer >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternType >, PatternModel< ValueType, ValueHandler, MapType, PatternPointer >, and PatternSetModel.
|
pure virtual |
Returns the number of times this pattern occurs in the model
Implemented in PatternModel< ValueType, ValueHandler, MapType, PatternType >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternPointer >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternType >, PatternModel< ValueType, ValueHandler, MapType, PatternPointer >, and PatternSetModel.
|
pure virtual |
Returns the number of times this pattern occurs in the model
Implemented in PatternModel< ValueType, ValueHandler, MapType, PatternType >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternPointer >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternType >, PatternModel< ValueType, ValueHandler, MapType, PatternPointer >, and PatternSetModel.
|
pure virtual |
Returns the number of tokens in the original corpus, includes tokens not covered by the model!
Implemented in PatternModel< ValueType, ValueHandler, MapType, PatternType >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternPointer >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternType >, PatternModel< ValueType, ValueHandler, MapType, PatternPointer >, and PatternSetModel.
|
pure virtual |
Returns the number of tokens in the original corpus, includes tokens not covered by the model!
Implemented in PatternModel< ValueType, ValueHandler, MapType, PatternType >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternPointer >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternType >, PatternModel< ValueType, ValueHandler, MapType, PatternPointer >, and PatternSetModel.
|
pure virtual |
Return the number of distinct words/unigram in the original corpus, includes types not covered by the model!
Implemented in PatternModel< ValueType, ValueHandler, MapType, PatternType >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternPointer >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternType >, PatternModel< ValueType, ValueHandler, MapType, PatternPointer >, and PatternSetModel.
|
pure virtual |
Return the number of distinct words/unigram in the original corpus, includes types not covered by the model!
Implemented in PatternModel< ValueType, ValueHandler, MapType, PatternType >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternPointer >, PatternModel< IndexedData, IndexedDataHandler, MapType, PatternType >, PatternModel< ValueType, ValueHandler, MapType, PatternPointer >, and PatternSetModel.