![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
#include <deeplima/nets/birnn_seq2seq.h>
Public Member Functions | |
| std::shared_ptr< StdMatrix< uint8_t > > | get_output () |
| RnnSeq2Seq () | |
| void | init (uint32_t, uint32_t, uint32_t, uint32_t, uint32_t) |
| void | load (const std::string &fn) |
| virtual | ~RnnSeq2Seq () |
Public Member Functions inherited from deeplima::eigen_wrp::EigenMatrix< M > | |
| EigenMatrix () | |
| EigenMatrix (int64_t max_time, int64_t max_feat) | |
| void | init (int64_t max_time, int64_t max_feat) |
| void | set (uint64_t time, uint64_t feat, value_t value) |
| void | set (uint64_t time, EigenMatrix< M > &src, uint64_t src_time) |
| value_t | get (uint64_t time, uint64_t feat) |
| uint64_t | size () const |
| uint64_t | get_max_feat () const |
| const M & | get_tensor () const |
Public Member Functions inherited from deeplima::lemmatization::eigen_impl::BiRnnSeq2SeqEigenInferenceForLemmatization | |
| virtual | ~BiRnnSeq2SeqEigenInferenceForLemmatization ()=default |
| virtual size_t | init_new_worker (size_t input_len, bool precomputed_input=false) override |
| virtual size_t | get_precomputed_dim () const |
| virtual void | precompute_inputs (const Eigen::MatrixXf &inputs, Eigen::MatrixXf &outputs, int64_t input_size) override |
| virtual void | predict (size_t, const Eigen::MatrixXf &, int64_t, int64_t, int64_t, int64_t, std::shared_ptr< StdMatrix< uint8_t > > &, const std::vector< std::string > &) override |
| virtual void | predict (size_t worker_id, const Eigen::MatrixXf &inputs, const Eigen::MatrixXf &input_feats, int64_t input_len, int64_t output_max_len, int64_t, std::vector< uint32_t > &output, const std::vector< std::string > &) |
| const std::vector< std::vector< std::string > > & | get_classes () const |
| const std::vector< std::string > & | get_class_names () const |
| const morph_model::morph_model_t & | get_morph_model () const |
| const std::string & | get_embd_fn (size_t idx) const |
| const std::vector< size_t > & | get_fixed_upos () const |
Public Member Functions inherited from deeplima::eigen_impl::BiRnnInferenceBase | |
| virtual | ~BiRnnInferenceBase ()=default |
| const uint_dicts_holder_t & | get_input_uint_dicts () const |
| const std::vector< std::string > & | get_input_uint_dicts_names () const |
| const str_dicts_holder_t & | get_input_str_dicts () const |
| const std::vector< std::string > & | get_input_str_dicts_names () const |
| const std::vector< std::vector< std::string > > & | get_output_str_dicts () const |
| const std::vector< std::string > & | get_output_str_dicts_names () const |
Additional Inherited Members | |
Public Types inherited from deeplima::eigen_wrp::EigenMatrix< M > | |
| typedef M | matrix_t |
| typedef M::Scalar | value_t |
Public Types inherited from deeplima::lemmatization::eigen_impl::BiRnnSeq2SeqEigenInferenceForLemmatization | |
| using | Parent = deeplima::eigen_impl::BiRnnInferenceBase |
Public Types inherited from deeplima::eigen_impl::BiRnnInferenceBase | |
| typedef Eigen::MatrixXf | Matrix |
| typedef Eigen::VectorXf | Vector |
| typedef float | Scalar |
| typedef Eigen::MatrixXf | tensor_t |
| typedef EmbdUInt64FloatHolder | uint_dicts_holder_t |
| typedef EmbdStrFloatHolder | str_dicts_holder_t |
Protected Types inherited from deeplima::eigen_impl::BiRnnInferenceBase | |
| typedef params_bilstm_t< Eigen::MatrixXf, Eigen::VectorXf > | params_bilstm_spec_t |
| typedef params_multilayer_bilstm_t< Eigen::MatrixXf, Eigen::VectorXf > | params_multilayer_bilstm_spec_t |
Protected Member Functions inherited from deeplima::eigen_wrp::EigenMatrix< M > | |
| M & | get_tensor () |
Protected Member Functions inherited from deeplima::lemmatization::eigen_impl::BiRnnSeq2SeqEigenInferenceForLemmatization | |
| virtual void | convert_from_torch (const std::string &fn) override |
Protected Member Functions inherited from deeplima::eigen_impl::BiRnnInferenceBase | |
| virtual void | convert_dicts_and_embeddings (const nets::BiRnnClassifierImpl &src) |
Protected Attributes inherited from deeplima::eigen_wrp::EigenMatrix< M > | |
| int64_t | m_start_time |
| int64_t | m_max_time |
| M | m_tensor |
Protected Attributes inherited from deeplima::lemmatization::eigen_impl::BiRnnSeq2SeqEigenInferenceForLemmatization | |
| std::vector< std::string > | m_class_names |
| std::vector< std::vector< std::string > > | m_classes |
| std::vector< std::string > | m_embd_fn |
| morph_model::morph_model_t | m_morph_model |
| std::vector< size_t > | m_fixed_upos |
| std::vector< std::shared_ptr< workbench_t > > | m_workbenches |
Protected Attributes inherited from deeplima::eigen_impl::BiRnnInferenceBase | |
| std::vector< std::shared_ptr< Op_Base > > | m_ops |
| std::vector< std::shared_ptr< param_base_t > > | m_params |
| std::vector< std::vector< std::shared_ptr< Op_Base::workbench_t > > > | m_wb |
| uint_dicts_holder_t | m_input_uint_dicts |
| std::vector< std::string > | m_input_uint_dicts_names |
| str_dicts_holder_t | m_input_str_dicts |
| std::vector< std::string > | m_input_str_dicts_names |
| std::vector< std::vector< std::string > > | m_output_str_dicts |
| std::vector< std::string > | m_output_str_dicts_names |
| std::vector< params_bilstm_spec_t > | m_lstm |
| std::map< std::string, size_t > | m_lstm_idx |
| std::vector< std::shared_ptr< params_multilayer_bilstm_spec_t > > | m_multi_bilstm |
| std::map< std::string, size_t > | m_multi_bilstm_idx |
| std::vector< params_linear_t< Eigen::MatrixXf, Eigen::VectorXf > > | m_linear |
| std::map< std::string, size_t > | m_linear_idx |
Definition at line 21 of file birnn_seq2seq.h.
|
inline |
Definition at line 34 of file birnn_seq2seq.h.
|
inlinevirtual |
Definition at line 59 of file birnn_seq2seq.h.
|
inline |
Definition at line 29 of file birnn_seq2seq.h.
|
inline |
Definition at line 38 of file birnn_seq2seq.h.
|
inlinevirtual |
Reimplemented from deeplima::lemmatization::eigen_impl::BiRnnSeq2SeqEigenInferenceForLemmatization.
Definition at line 47 of file birnn_seq2seq.h.