CASRSVocManHwDevice Class Reference

class CASRSVocManHwDevice : public CASRSHwDevice

Class for pruning When the grammar starts to get big, this class can prune least used rule variants away before adding new rules.

AsrsVocmanHwDevice.dll
Since
?Series60_version

Inherits from

Constructor & Destructor Documentation

CASRSVocManHwDevice()

CASRSVocManHwDevice ( ) [private]
From ?base_class ?member_description.
Since
?Series60_version
Since
?Series60_version

~CASRSVocManHwDevice()

IMPORT_C ~CASRSVocManHwDevice ( ) [virtual]

Destructor.

Member Functions Documentation

AdaptL(const TSIRuleVariantID, CSIRule &)

IMPORT_C void AdaptL ( const TSIRuleVariantID aCorrectRuleVariantID,
CSIRule & aRule
)
Use to adapt rule after recognition
Since
2.6

Parameters

const TSIRuleVariantID aCorrectRuleVariantID Correctly recognized rule variant
CSIRule & aRule Rule including correct variant

Clear()

void Clear ( ) [virtual]
From CASRHwDevice Clear HW Device's allocated memory
Since
2.8

ComputeNRuleVariantsL(const CSIGrammar &, const TUint32, const TUint32, const RArray< TUint > &, RArray< TUint > &, TUint32 &)

IMPORT_C void ComputeNRuleVariantsL ( const CSIGrammar & aGrammar,
const TUint32 aTargetNRuleVariants,
const TUint32 aMaxNRuleVariants,
const RArray < TUint > & aNewRuleScores,
RArray < TUint > & aNNewRuleVariants,
TUint32 & aNPrune
)
Use to determine number of new rule variants
Since
2.6

Parameters

const CSIGrammar & aGrammar Grammar where new variants should be added to
const TUint32 aTargetNRuleVariants Target number of rule variants in the grammar
const TUint32 aMaxNRuleVariants Maximum number of rule variants in the grammar
const RArray < TUint > & aNewRuleScores Score for each new rule
RArray < TUint > & aNNewRuleVariants
TUint32 & aNPrune

ConstructL()

void ConstructL ( ) [private]

By default Symbian 2nd phase constructor is private.

CustomInterface(TUid)

TAny * CustomInterface ( TUid aInterfaceUid ) [virtual]
From CASRHwDevice Gets a custom interface
Since
2.8

Parameters

TUid aInterfaceUid Uid of the interface.

InitializeL()

void InitializeL ( ) [virtual]
From CASRHwDevice Initializes the HW Device
Since
2.8

NewL()

IMPORT_C CASRSVocManHwDevice * NewL ( ) [static]

Two-phased constructor.

Prune(const CSIGrammar &, TUint32, RArray< TSIRuleVariantInfo > &)

IMPORT_C TBool Prune ( const CSIGrammar & aGrammar,
TUint32 aMinNumber,
RArray < TSIRuleVariantInfo > & aPrunedItems
)
Use to prune grammar.
Since
2.6

Parameters

const CSIGrammar & aGrammar Grammar to be pruned
TUint32 aMinNumber Minimum number of items to be pruned
RArray < TSIRuleVariantInfo > & aPrunedItems Information which items can be removed

Member Data Documentation

TAny * iReserved

TAny * iReserved [private]

CVocManAlgorithm * iVMAlgorithm

CVocManAlgorithm * iVMAlgorithm [private]