MCPcopy Create free account

hub / github.com/HIT-SCIR/plm-nlp-code / functions

Functions157 in github.com/HIT-SCIR/plm-nlp-code

↓ 8 callersMethodconvert_tokens_to_ids
(self, tokens)
chp4/vocab.py:35
↓ 6 callersFunctionget_loader
(dataset, batch_size, shuffle=True)
chp5/utils.py:52
↓ 6 callersFunctionload_reuters
()
chp5/utils.py:14
↓ 6 callersFunctionsave_pretrained
Save pretrained token vectors in a unified format, where the first line specifies the `number_of_tokens` and `embedding_dim` followed with al
chp5/utils.py:24
↓ 4 callersMethod__init__
(self, configs, vocab_w, vocab_c)
chp6/train_elmo.py:283
↓ 4 callersFunctionload_sentence_polarity
()
chp4/utils.py:6
↓ 3 callersMethodbuild
(cls, text, min_freq=1, reserved_tokens=None)
chp4/vocab.py:19
↓ 3 callersMethodconvert_tokens_to_ids
(self, tokens)
chp6/vocab.py:35
↓ 3 callersFunctioninit_weights
(model)
chp5/utils.py:61
↓ 2 callersMethodbuild
(cls, text, min_freq=1, reserved_tokens=None)
chp6/vocab.py:19
↓ 2 callersMethodconvert_ids_to_tokens
(self, indices)
chp5/vocab.py:38
↓ 2 callersMethodconvert_tokens_to_ids
(self, tokens)
chp5/vocab.py:35
↓ 2 callersMethodforward_c
(self, contexts)
chp5/sgns.py:66
↓ 2 callersFunctionknn
(W, x, k)
chp5/evaluate.py:6
↓ 2 callersFunctionlength_to_mask
(lengths)
chp4/utils.py:23
↓ 2 callersFunctionload_pretrained
(load_path)
chp5/utils.py:37
↓ 2 callersFunctionload_treebank
()
chp4/utils.py:28
↓ 2 callersFunctionsave_vocab
(vocab, path)
chp6/vocab.py:42
↓ 1 callersMethod__init__
(self, vocab_size, embedding_dim, hidden_dim, num_class, dim_feedforward=512, num_head=2, num
chp4/transformer_sent_polarity.py:49
↓ 1 callersMethod__init__
(self, vocab_size, embedding_dim, hidden_dim, num_class, dim_feedforward=512, num_head=2, num
chp4/transformer_postag.py:52
↓ 1 callersMethod__init__
(self, corpus, vocab, context_size=2)
chp5/ffnnlm.py:13
↓ 1 callersMethodbuild
(cls, text, min_freq=1, reserved_tokens=None)
chp5/vocab.py:19
↓ 1 callersFunctionfind_analogy
(embeds, vocab, word_a, word_b, word_c)
chp5/evaluate.py:24
↓ 1 callersFunctionfind_similar_words
(embeds, vocab, query, k=5)
chp5/evaluate.py:11
↓ 1 callersFunctionfmm_word_seg
(sentence, lexicon, max_len)
chp2/fmm_word_seg.py:16
↓ 1 callersMethodforward_c
(self, contexts)
chp5/glove.py:60
↓ 1 callersMethodforward_w
(self, words)
chp5/sgns.py:62
↓ 1 callersMethodforward_w
(self, words)
chp5/glove.py:55
↓ 1 callersFunctionget_loader
(dataset, batch_size, shuffle=True)
chp6/utils.py:52
↓ 1 callersFunctionget_unigram_distribution
(corpus, vocab_size)
chp5/sgns.py:71
↓ 1 callersFunctioninit_weights
(model)
chp4/lstm_postag.py:36
↓ 1 callersFunctionload_corpus
(path, max_tok_len=None, max_seq_len=None)
chp6/train_elmo.py:21
↓ 1 callersFunctionload_dict
()
chp2/fmm_word_seg.py:3
↓ 1 callersFunctionpmi
(M, positive=True)
chp2/svd.py:16
↓ 1 callersFunctionremove_control_chars
(in_str)
chp3/wikidata_cleaning.py:13
↓ 1 callersFunctionremove_empty_paired_punc
(in_str)
chp3/wikidata_cleaning.py:6
↓ 1 callersFunctionremove_html_tags
(in_str)
chp3/wikidata_cleaning.py:9
↓ 1 callersMethodsave_pretrained
(self, path)
chp6/train_elmo.py:311
Method__getitem__
(self, i)
chp4/transformer_sent_polarity.py:21
Method__getitem__
(self, i)
chp4/lstm_postag.py:24
Method__getitem__
(self, i)
chp4/transformer_postag.py:21
Method__getitem__
(self, i)
chp4/cnn_sent_polarity.py:17
Method__getitem__
(self, i)
chp4/mlp_sent_polarity.py:16
Method__getitem__
(self, token)
chp4/vocab.py:32
Method__getitem__
(self, i)
chp4/lstm_sent_polarity.py:20
Method__getitem__
(self, i)
chp5/sgns.py:38
Method__getitem__
(self, i)
chp5/rnnlm.py:29
Method__getitem__
(self, i)
chp5/skipgram.py:32
Method__getitem__
(self, token)
chp5/vocab.py:32
Method__getitem__
(self, i)
chp5/ffnnlm.py:32
Method__getitem__
(self, i)
chp5/cbow.py:32
Method__getitem__
(self, i)
chp5/glove.py:36
Method__getitem__
(self, i)
chp6/train_elmo.py:85
Method__getitem__
(self, token)
chp6/vocab.py:32
Method__init__
(self, data)
chp4/transformer_sent_polarity.py:17
Method__init__
(self, d_model, dropout=0.1, max_len=512)
chp4/transformer_sent_polarity.py:33
Method__init__
(self, data)
chp4/lstm_postag.py:18
Method__init__
(self, vocab_size, embedding_dim, hidden_dim, num_class)
chp4/lstm_postag.py:41
Method__init__
(self, data)
chp4/transformer_postag.py:17
Method__init__
(self, d_model, dropout=0.1, max_len=512)
chp4/transformer_postag.py:34
Method__init__
(self, input_dim, hidden_dim, num_class)
chp4/mlp_train.py:6
Method__init__
(self, data)
chp4/cnn_sent_polarity.py:13
Method__init__
(self, vocab_size, embedding_dim, filter_size, num_filter, num_class)
chp4/cnn_sent_polarity.py:28
Method__init__
(self, vocab_size, embedding_dim, hidden_dim, num_class)
chp4/mlp_embedding.py:6
Method__init__
(self, data)
chp4/mlp_sent_polarity.py:12
Method__init__
(self, vocab_size, embedding_dim, hidden_dim, num_class)
chp4/mlp_sent_polarity.py:28
Method__init__
(self, input_dim, hidden_dim, num_class)
chp4/mlp.py:8
Method__init__
(self, tokens=None)
chp4/vocab.py:6
Method__init__
(self, data)
chp4/lstm_sent_polarity.py:16
Method__init__
(self, vocab_size, embedding_dim, hidden_dim, num_class)
chp4/lstm_sent_polarity.py:32
Method__init__
(self, corpus, vocab, context_size=2, n_negatives=5, ns_dist=None)
chp5/sgns.py:14
Method__init__
(self, vocab_size, embedding_dim)
chp5/sgns.py:55
Method__init__
(self, corpus, vocab)
chp5/rnnlm.py:14
Method__init__
(self, vocab_size, embedding_dim, hidden_dim)
chp5/rnnlm.py:42
Method__init__
(self, corpus, vocab, context_size=2)
chp5/skipgram.py:14
Method__init__
(self, vocab_size, embedding_dim)
chp5/skipgram.py:41
Method__init__
(self, tokens=None)
chp5/vocab.py:6
Method__init__
(self, vocab_size, embedding_dim, context_size, hidden_dim)
chp5/ffnnlm.py:42
Method__init__
(self, corpus, vocab, context_size=2)
chp5/cbow.py:14
Method__init__
(self, vocab_size, embedding_dim)
chp5/cbow.py:41
Method__init__
(self, corpus, vocab, context_size=2)
chp5/glove.py:15
Method__init__
(self, vocab_size, embedding_dim)
chp5/glove.py:46
Method__init__
(self, corpus_w, corpus_c, vocab_w, vocab_c)
chp6/train_elmo.py:73
Method__init__
(self, input_dim, num_layers, activation=F.relu)
chp6/train_elmo.py:116
Method__init__
( self, vocab_c, char_embedding_dim, char_conv_filters, num_highways,
chp6/train_elmo.py:139
Method__init__
( self, input_dim, hidden_dim, num_layers, dropout_prob=0.0 )
chp6/train_elmo.py:195
Method__init__
(self, tokens=None)
chp6/vocab.py:6
Method__len__
(self)
chp4/transformer_sent_polarity.py:19
Method__len__
(self)
chp4/lstm_postag.py:21
Method__len__
(self)
chp4/transformer_postag.py:19
Method__len__
(self)
chp4/cnn_sent_polarity.py:15
Method__len__
(self)
chp4/mlp_sent_polarity.py:14
Method__len__
(self)
chp4/vocab.py:29
Method__len__
(self)
chp4/lstm_sent_polarity.py:18
Method__len__
(self)
chp5/sgns.py:35
Method__len__
(self)
chp5/rnnlm.py:26
Method__len__
(self)
chp5/skipgram.py:29
Method__len__
(self)
chp5/vocab.py:29
Method__len__
(self)
chp5/ffnnlm.py:29
Method__len__
(self)
chp5/cbow.py:29
next →1–100 of 157, ranked by callers