MCPcopy Create free account

hub / github.com/649453932/Bert-Chinese-Text-Classification-Pytorch / functions

Functions349 in github.com/649453932/Bert-Chinese-Text-Classification-Pytorch

Method__init__
(self, dataset)
models/ERNIE.py:10
Method__init__
(self, config)
models/ERNIE.py:34
Method__init__
(self, dataset)
models/bert.py:11
Method__init__
(self, config)
models/bert.py:34
Method__init__
(self, dataset)
models/bert_RCNN.py:11
Method__init__
(self, config)
models/bert_RCNN.py:39
Method__init__
(self, dataset)
models/bert_RNN.py:11
Method__init__
(self, config)
models/bert_RNN.py:39
Method__init__
(self, dataset)
models/bert_CNN.py:11
Method__init__
(self, config)
models/bert_CNN.py:37
Method__iter__
(self)
utils.py:78
Method__iter__
(self)
pytorch_pretrained/tokenization_transfo_xl.py:333
Method__iter__
(self)
pytorch_pretrained/tokenization_transfo_xl.py:409
Method__iter__
(self)
pytorch_pretrained/tokenization_transfo_xl.py:439
Method__len__
(self)
utils.py:81
Method__len__
(self)
pytorch_pretrained/tokenization_openai.py:157
Method__len__
(self)
pytorch_pretrained/tokenization_gpt2.py:163
Method__len__
(self)
pytorch_pretrained/tokenization_transfo_xl.py:256
Method__next__
(self)
utils.py:62
Method__repr__
(self)
pytorch_pretrained/modeling_transfo_xl.py:306
Method__repr__
(self)
pytorch_pretrained/modeling_gpt2.py:168
Method__repr__
(self)
pytorch_pretrained/modeling.py:210
Method__repr__
(self)
pytorch_pretrained/modeling_openai.py:214
Method_parallelogram_mask
(self, h, w, left=False)
pytorch_pretrained/modeling_transfo_xl.py:489
Method_shift
(self, x, qlen, klen, mask, left=False)
pytorch_pretrained/modeling_transfo_xl.py:500
Methodbackward_compatible
(self)
pytorch_pretrained/modeling_transfo_xl.py:1104
Methodbuild_corpus
(self, path, dataset)
pytorch_pretrained/tokenization_transfo_xl.py:501
Methodconvert_ids_to_tokens
Converts a sequence of ids in wordpiece tokens using the vocab.
pytorch_pretrained/tokenization.py:130
Methodconvert_ids_to_tokens
Converts a sequence of ids in BPE tokens using the vocab.
pytorch_pretrained/tokenization_gpt2.py:249
Methodconvert_ids_to_tokens
Converts a sequence of indices in symbols using the vocab.
pytorch_pretrained/tokenization_transfo_xl.py:238
Methodcount_sents
sents : a list of sentences, each a list of tokenized symbols
pytorch_pretrained/tokenization_transfo_xl.py:122
Methoddecode
Converts a sequence of ids in a string.
pytorch_pretrained/tokenization_openai.py:269
Methoddecode
Converts a sequence of indices in a string.
pytorch_pretrained/tokenization_transfo_xl.py:249
Methodencode
(self, text)
pytorch_pretrained/tokenization_openai.py:266
Methodencode_sents
(self, sents, ordered=False, verbose=False)
pytorch_pretrained/tokenization_transfo_xl.py:194
Functionfilename_to_url
Return the url and etag (which may be ``None``) stored for `filename`. Raise ``EnvironmentError`` if `filename` or its stored metadata do not
pytorch_pretrained/file_utils.py:62
Methodforward
(self, pos_seq, bsz=None)
pytorch_pretrained/modeling_transfo_xl.py:333
Methodforward
(self, inp)
pytorch_pretrained/modeling_transfo_xl.py:362
Methodforward
(self, h, attn_mask=None, mems=None)
pytorch_pretrained/modeling_transfo_xl.py:408
Methodforward
(self, w, r, attn_mask=None, mems=None)
pytorch_pretrained/modeling_transfo_xl.py:534
Methodforward
(self, w, r, attn_mask=None, mems=None)
pytorch_pretrained/modeling_transfo_xl.py:543
Methodforward
(self, w, r_emb, r_w_bias, r_bias, attn_mask=None, mems=None)
pytorch_pretrained/modeling_transfo_xl.py:622
Methodforward
(self, dec_inp, dec_attn_mask=None, mems=None)
pytorch_pretrained/modeling_transfo_xl.py:711
Methodforward
(self, dec_inp, r_emb, r_w_bias, r_bias, dec_attn_mask=None, mems=None)
pytorch_pretrained/modeling_transfo_xl.py:729
Methodforward
(self, dec_inp, r, dec_attn_mask=None, mems=None)
pytorch_pretrained/modeling_transfo_xl.py:748
Methodforward
(self, inp)
pytorch_pretrained/modeling_transfo_xl.py:789
Methodforward
Params: input_ids :: [bsz, len] mems :: optional mems from previous forwar passes (or init_mems)
pytorch_pretrained/modeling_transfo_xl.py:1239
Methodforward
Params: input_ids :: [bsz, len] target :: [bsz, len] Returns: tuple(softmax_output, new_m
pytorch_pretrained/modeling_transfo_xl.py:1355
Methodforward
Params: hidden :: [len*bsz x d_proj] target :: [len*bsz] Return: if target is
pytorch_pretrained/modeling_transfo_xl_utilities.py:92
Methodforward
(self, x)
pytorch_pretrained/modeling_gpt2.py:195
Methodforward
(self, x, layer_past=None)
pytorch_pretrained/modeling_gpt2.py:239
Methodforward
(self, x)
pytorch_pretrained/modeling_gpt2.py:264
Methodforward
(self, x, layer_past=None)
pytorch_pretrained/modeling_gpt2.py:279
Methodforward
(self, hidden_state)
pytorch_pretrained/modeling_gpt2.py:300
Methodforward
(self, hidden_states, mc_token_ids)
pytorch_pretrained/modeling_gpt2.py:318
Methodforward
(self, input_ids, position_ids=None, token_type_ids=None, past=None)
pytorch_pretrained/modeling_gpt2.py:532
Methodforward
(self, input_ids, position_ids=None, token_type_ids=None, lm_labels=None, past=None)
pytorch_pretrained/modeling_gpt2.py:618
Methodforward
(self, input_ids, mc_token_ids, lm_labels=None, mc_labels=None, token_type_ids=None, position_ids=None, past=N
pytorch_pretrained/modeling_gpt2.py:695
Methodforward
(self, x)
pytorch_pretrained/modeling.py:240
Methodforward
(self, input_ids, token_type_ids=None)
pytorch_pretrained/modeling.py:260
Methodforward
(self, hidden_states, attention_mask)
pytorch_pretrained/modeling.py:299
Methodforward
(self, hidden_states, input_tensor)
pytorch_pretrained/modeling.py:335
Methodforward
(self, input_tensor, attention_mask)
pytorch_pretrained/modeling.py:348
Methodforward
(self, hidden_states)
pytorch_pretrained/modeling.py:363
Methodforward
(self, hidden_states, input_tensor)
pytorch_pretrained/modeling.py:376
Methodforward
(self, hidden_states, attention_mask)
pytorch_pretrained/modeling.py:390
Methodforward
(self, hidden_states, attention_mask, output_all_encoded_layers=True)
pytorch_pretrained/modeling.py:403
Methodforward
(self, hidden_states)
pytorch_pretrained/modeling.py:420
Methodforward
(self, hidden_states)
pytorch_pretrained/modeling.py:439
Methodforward
(self, hidden_states)
pytorch_pretrained/modeling.py:459
Methodforward
(self, sequence_output)
pytorch_pretrained/modeling.py:470
Methodforward
(self, pooled_output)
pytorch_pretrained/modeling.py:480
Methodforward
(self, sequence_output, pooled_output)
pytorch_pretrained/modeling.py:491
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, output_all_encoded_layers=True)
pytorch_pretrained/modeling.py:709
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, masked_lm_labels=None, next_sentence_label=None)
pytorch_pretrained/modeling.py:797
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, masked_lm_labels=None)
pytorch_pretrained/modeling.py:860
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, next_sentence_label=None)
pytorch_pretrained/modeling.py:922
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, labels=None)
pytorch_pretrained/modeling.py:988
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, labels=None)
pytorch_pretrained/modeling.py:1053
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, labels=None)
pytorch_pretrained/modeling.py:1123
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, start_positions=None, end_positions=None)
pytorch_pretrained/modeling.py:1198
Methodforward
(self, x)
pytorch_pretrained/modeling_openai.py:245
Methodforward
(self, x)
pytorch_pretrained/modeling_openai.py:296
Methodforward
(self, x)
pytorch_pretrained/modeling_openai.py:318
Methodforward
(self, x)
pytorch_pretrained/modeling_openai.py:333
Methodforward
(self, hidden_state)
pytorch_pretrained/modeling_openai.py:354
Methodforward
(self, hidden_states, mc_token_ids)
pytorch_pretrained/modeling_openai.py:374
Methodforward
(self, input_ids, position_ids=None, token_type_ids=None)
pytorch_pretrained/modeling_openai.py:619
Methodforward
(self, input_ids, position_ids=None, token_type_ids=None, lm_labels=None)
pytorch_pretrained/modeling_openai.py:717
Methodforward
(self, input_ids, mc_token_ids, lm_labels=None, mc_labels=None, token_type_ids=None, position_ids=None)
pytorch_pretrained/modeling_openai.py:807
Methodforward
(self, x)
models/bert_DPCNN.py:50
Methodforward
(self, x)
models/ERNIE.py:41
Methodforward
(self, x)
models/bert.py:41
Methodforward
(self, x)
models/bert_RCNN.py:49
Methodforward
(self, x)
models/bert_RNN.py:49
Methodforward
(self, x)
models/bert_CNN.py:53
Methodfrom_pretrained
Instantiate a PreTrainedBertModel from a pre-trained model file. Download and cache the pre-trained model file if needed.
pytorch_pretrained/tokenization_openai.py:82
Methodfrom_pretrained
Instantiate a TransfoXLPreTrainedModel from a pre-trained model file or a pytorch state dict. Download and cache the pre-trained mode
pytorch_pretrained/modeling_transfo_xl.py:891
Methodfrom_pretrained
Instantiate a PreTrainedBertModel from a pre-trained model file. Download and cache the pre-trained model file if needed.
pytorch_pretrained/tokenization_gpt2.py:92
Methodfrom_pretrained
Instantiate a TransfoXLTokenizer. The TransfoXLTokenizer.
pytorch_pretrained/tokenization_transfo_xl.py:58
← previousnext →201–300 of 349, ranked by callers