![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
#include </home/runner/work/lima/lima/deeplima/libs/nn/torch_modules/stanza_models_depparse_model.h>
Public Member Functions | |
| StanzaDepparseParserImpl ()=default | |
| StanzaDepparseParserImpl (int64_t word_emb_dim, int64_t tag_emb_dim, int64_t hidden_dim, int64_t num_layers, float dropout, float rec_dropout, std::shared_ptr< std::map< std::string, std::vector< std::string > > > vocab, std::shared_ptr< std::vector< std::vector< std::string > > > feats_vocabs, int64_t deep_biaff_hidden_dim, bool linearize, bool dist, int64_t word_dropout) | |
| std::pair< float, std::vector< torch::Tensor > > | forward (torch::Tensor word, torch::Tensor word_mask, torch::Tensor wordchars, torch::Tensor wordchars_mask, torch::Tensor upos, torch::Tensor xpos, torch::Tensor ufeats, torch::Tensor pretrained, torch::Tensor lemma, torch::Tensor head, torch::Tensor deprels, torch::Tensor word_orig_idx, torch::Tensor sentlens, torch::Tensor wordlens) |
Definition at line 535 of file stanza_models_depparse_model.h.
|
default |
| deeplima::nets::torch_modules::StanzaDepparseParserImpl::StanzaDepparseParserImpl | ( | int64_t | word_emb_dim, |
| int64_t | tag_emb_dim, | ||
| int64_t | hidden_dim, | ||
| int64_t | num_layers, | ||
| float | dropout, | ||
| float | rec_dropout, | ||
| std::shared_ptr< std::map< std::string, std::vector< std::string > > > | vocab, | ||
| std::shared_ptr< std::vector< std::vector< std::string > > > | feats_vocabs, | ||
| int64_t | deep_biaff_hidden_dim, | ||
| bool | linearize, | ||
| bool | dist, | ||
| int64_t | word_dropout | ||
| ) |
Definition at line 27 of file stanza_models_depparse_model.cpp.
| std::pair< float, std::vector< torch::Tensor > > deeplima::nets::torch_modules::StanzaDepparseParserImpl::forward | ( | torch::Tensor | word, |
| torch::Tensor | word_mask, | ||
| torch::Tensor | wordchars, | ||
| torch::Tensor | wordchars_mask, | ||
| torch::Tensor | upos, | ||
| torch::Tensor | xpos, | ||
| torch::Tensor | ufeats, | ||
| torch::Tensor | pretrained, | ||
| torch::Tensor | lemma, | ||
| torch::Tensor | head, | ||
| torch::Tensor | deprels, | ||
| torch::Tensor | word_orig_idx, | ||
| torch::Tensor | sentlens, | ||
| torch::Tensor | wordlens | ||
| ) |
Definition at line 120 of file stanza_models_depparse_model.cpp.