![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
#include <deeplima/eigen_wrp/embd_dict.h>
Public Types | |
| typedef K | value_t |
| typedef M | tensor_t |
| typedef I | index_t |
Public Member Functions | |
| EmbdDict ()=default | |
| virtual | ~EmbdDict () |
| template<class T > | |
| void | init (std::shared_ptr< Dict< T > > dict, const M &tensor, bool transpose=true) |
| virtual I | dim () const override |
| virtual void | get (const K key, M &target, I timepoint, I pos) const override |
| void | get_direct (const I idx, M &target, I timepoint, I pos) const |
| Eigen::Ref< const M > | get_ref_by_idx (const I idx) const |
| Eigen::Ref< const M > | get_ref_by_key (const K key) const |
| void | get_static (const K key, M &target, I timepoint, I pos) const |
| const M & | get_tensor () const |
| void | set_tensor (const M &new_embd) |
| K | decode (const I idx) const |
| I | lookup (const K key) const |
Public Member Functions inherited from deeplima::FeatureVectorizerToMatrix< Matrix, Type, Idx > | |
| virtual | ~FeatureVectorizerToMatrix ()=default |
| virtual void | get (const Type value, Matrix &target, Idx time, Idx pos) const =0 |
Public Member Functions inherited from deeplima::FeatureVectorizerBase< Idx > | |
| virtual | ~FeatureVectorizerBase ()=default |
Protected Attributes | |
| I | m_dim |
| M | m_embd |
| std::unordered_map< K, I > | m_index |
| std::unordered_map< I, K > | m_reverse_index |
Definition at line 23 of file embd_dict.h.
| typedef I deeplima::EmbdDict< K, M, I >::index_t |
Definition at line 28 of file embd_dict.h.
| typedef M deeplima::EmbdDict< K, M, I >::tensor_t |
Definition at line 27 of file embd_dict.h.
| typedef K deeplima::EmbdDict< K, M, I >::value_t |
Definition at line 26 of file embd_dict.h.
|
default |
|
inlinevirtual |
Definition at line 31 of file embd_dict.h.
|
inline |
Definition at line 102 of file embd_dict.h.
|
inlineoverridevirtual |
Implements deeplima::FeatureVectorizerBase< Idx >.
Definition at line 55 of file embd_dict.h.
|
inlineoverridevirtual |
Definition at line 64 of file embd_dict.h.
|
inline |
Definition at line 69 of file embd_dict.h.
|
inline |
Definition at line 74 of file embd_dict.h.
|
inline |
Definition at line 79 of file embd_dict.h.
|
inline |
Definition at line 85 of file embd_dict.h.
|
inline |
Definition at line 91 of file embd_dict.h.
|
inline |
Definition at line 34 of file embd_dict.h.
|
inline |
Definition at line 108 of file embd_dict.h.
|
inline |
Definition at line 96 of file embd_dict.h.
|
protected |
Definition at line 115 of file embd_dict.h.
|
protected |
Definition at line 116 of file embd_dict.h.
|
protected |
Definition at line 117 of file embd_dict.h.
|
protected |
Definition at line 118 of file embd_dict.h.