Cambridge SMT System
fst::MakeSparseVectorWeight< Arc > Struct Template Reference

Templated Functor to generate a sparse vector weight from any other representation. More...

#include <tropical-sparse-tuple-weight.makeweight.h>

Public Member Functions

 MakeSparseVectorWeight (int32_t k)
 
TropicalSparseTupleWeight< float > operator() (const typename Arc::Weight &w) const
 

Detailed Description

template<typename Arc = StdArc>
struct fst::MakeSparseVectorWeight< Arc >

Templated Functor to generate a sparse vector weight from any other representation.

Definition at line 29 of file tropical-sparse-tuple-weight.makeweight.h.

Constructor & Destructor Documentation

template<typename Arc = StdArc>
fst::MakeSparseVectorWeight< Arc >::MakeSparseVectorWeight ( int32_t  k)
inlineexplicit

Definition at line 30 of file tropical-sparse-tuple-weight.makeweight.h.

Member Function Documentation

template<typename Arc = StdArc>
TropicalSparseTupleWeight<float> fst::MakeSparseVectorWeight< Arc >::operator() ( const typename Arc::Weight &  w) const
inline

Definition at line 34 of file tropical-sparse-tuple-weight.makeweight.h.


The documentation for this struct was generated from the following file: