MCPcopy Create free account

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

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

↓ 1 callersMethodload
(module, prefix="")
pytorch_pretrained/modeling_gpt2.py:451
↓ 1 callersFunctionload_vocab
Loads a vocabulary file into a dictionary.
pytorch_pretrained/tokenization.py:50
↓ 1 callersFunctionmain
()
pytorch_pretrained/__main__.py:2
↓ 1 callersMethodmerge_heads
(self, x)
pytorch_pretrained/modeling_gpt2.py:226
↓ 1 callersMethodmerge_heads
(self, x)
pytorch_pretrained/modeling_openai.py:283
↓ 1 callersMethodreset_length
(self, tgt_len, ext_len, mem_len)
pytorch_pretrained/modeling_transfo_xl.py:1108
↓ 1 callersFunctions3_etag
Check ETag on S3 object.
pytorch_pretrained/file_utils.py:151
↓ 1 callersFunctions3_get
Pull a file directly from S3.
pytorch_pretrained/file_utils.py:160
↓ 1 callersMethodsample
labels: [b1, b2] Return true_log_probs: [b1, b2] samp_log_probs: [n_sample] neg_samples: [n_s
pytorch_pretrained/modeling_transfo_xl_utilities.py:281
↓ 1 callersMethodset_special_tokens
Add a list of additional tokens to the encoder. The additional tokens are indexed starting from the last index of the current
pytorch_pretrained/tokenization_openai.py:160
↓ 1 callersMethodset_special_tokens
Add a list of additional tokens to the encoder. The additional tokens are indexed starting from the last index of the current
pytorch_pretrained/tokenization_gpt2.py:166
↓ 1 callersMethodset_tied
Make sure we are sharing the embeddings
pytorch_pretrained/modeling_gpt2.py:613
↓ 1 callersMethodstep
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
pytorch_pretrained/optimization.py:237
↓ 1 callersFunctiontest
(config, model, test_iter)
train_eval.py:85
↓ 1 callersFunctiontext_standardize
fixes some issues the spacy tokenizer had on books corpus also does some whitespace standardization
pytorch_pretrained/tokenization_openai.py:58
↓ 1 callersMethodto_dict
Serializes this instance to a Python dictionary.
pytorch_pretrained/modeling_transfo_xl.py:309
↓ 1 callersMethodto_dict
Serializes this instance to a Python dictionary.
pytorch_pretrained/modeling_gpt2.py:171
↓ 1 callersMethodto_dict
Serializes this instance to a Python dictionary.
pytorch_pretrained/modeling.py:213
↓ 1 callersMethodto_dict
Serializes this instance to a Python dictionary.
pytorch_pretrained/modeling_openai.py:217
↓ 1 callersMethodtokenize
Tokenize a string.
pytorch_pretrained/tokenization_openai.py:219
↓ 1 callersMethodtokenize
(self, text)
pytorch_pretrained/tokenization.py:107
↓ 1 callersMethodtokenize
Tokenize a string.
pytorch_pretrained/tokenization_gpt2.py:220
↓ 1 callersFunctiontrain
(config, model, train_iter, dev_iter, test_iter)
train_eval.py:31
↓ 1 callersFunctionurl_to_filename
Convert `url` into a hashed filename in a repeatable way. If `etag` is specified, append its hash to the url's, delimited by a period.
pytorch_pretrained/file_utils.py:44
Method__init__
(self, batches, batch_size, device)
utils.py:43
Method__init__
(self, vocab_file, merges_file, special_tokens=None, max_len=None)
pytorch_pretrained/tokenization_openai.py:134
Method__init__
Constructs TransfoXLConfig. Args: vocab_size_or_config_json_file: Vocabulary size of `inputs_ids` in `TransfoXLModel` or a config
pytorch_pretrained/modeling_transfo_xl.py:187
Method__init__
(self, demb)
pytorch_pretrained/modeling_transfo_xl.py:325
Method__init__
(self, d_model, d_inner, dropout, pre_lnorm=False)
pytorch_pretrained/modeling_transfo_xl.py:344
Method__init__
(self, n_head, d_model, d_head, dropout, dropatt=0, pre_lnorm=False, r_r_bias=None, r_w_bias
pytorch_pretrained/modeling_transfo_xl.py:379
Method__init__
(self, n_head, d_model, d_head, dropout, dropatt=0, tgt_len=None, ext_len=None, mem_len=None,
pytorch_pretrained/modeling_transfo_xl.py:460
Method__init__
(self, *args, **kwargs)
pytorch_pretrained/modeling_transfo_xl.py:538
Method__init__
(self, *args, **kwargs)
pytorch_pretrained/modeling_transfo_xl.py:619
Method__init__
(self, n_head, d_model, d_head, d_inner, dropout, **kwargs)
pytorch_pretrained/modeling_transfo_xl.py:720
Method__init__
(self, n_head, d_model, d_head, d_inner, dropout, **kwargs)
pytorch_pretrained/modeling_transfo_xl.py:739
Method__init__
(self, n_token, d_embed, d_proj, cutoffs, div_val=1, sample_softmax=False)
pytorch_pretrained/modeling_transfo_xl.py:759
Method__init__
(self, config, *inputs, **kwargs)
pytorch_pretrained/modeling_transfo_xl.py:826
Method__init__
(self, config)
pytorch_pretrained/modeling_transfo_xl.py:1029
Method__init__
(self, config)
pytorch_pretrained/modeling_transfo_xl.py:1316
Method__init__
Constructs a BertTokenizer. Args: vocab_file: Path to a one-wordpiece-per-line vocabulary file do_lower_case: Whether to
pytorch_pretrained/tokenization.py:77
Method__init__
Constructs a BasicTokenizer. Args: do_lower_case: Whether to lower case the input.
pytorch_pretrained/tokenization.py:204
Method__init__
(self, vocab, unk_token="[UNK]", max_input_chars_per_word=100)
pytorch_pretrained/tokenization.py:321
Method__init__
(self, vocab_file, merges_file, errors='replace', special_tokens=None, max_len=None)
pytorch_pretrained/tokenization_gpt2.py:144
Method__init__
(self, special=[], min_freq=0, max_size=None, lower_case=False, delimiter=None, vocab_file=No
pytorch_pretrained/tokenization_transfo_xl.py:96
Method__init__
data -- LongTensor -- the LongTensor is strictly ordered
pytorch_pretrained/tokenization_transfo_xl.py:280
Method__init__
data -- list[LongTensor] -- there is no order among the LongTensors
pytorch_pretrained/tokenization_transfo_xl.py:338
Method__init__
(self, paths, vocab, bsz, bptt, device='cpu', ext_len=None, shuffle=False)
pytorch_pretrained/tokenization_transfo_xl.py:418
Method__init__
(self, *args, **kwargs)
pytorch_pretrained/tokenization_transfo_xl.py:494
Method__init__
:param warmup: what fraction of t_total steps will be used for linear warmup :param t_total: how many training steps (updates) are p
pytorch_pretrained/optimization.py:38
Method__init__
:param warmup: see LRSchedule :param t_total: see LRSchedule :param cycles: number of cycles. Default: 0.5, cor
pytorch_pretrained/optimization.py:93
Method__init__
(self, warmup=0.002, t_total=-1, cycles=1., **kw)
pytorch_pretrained/optimization.py:117
Method__init__
(self, warmup=0.002, t_total=-1, cycles=1., **kw)
pytorch_pretrained/optimization.py:136
Method__init__
(self, n_token, d_embed, d_proj, cutoffs, div_val=1, keep_order=False)
pytorch_pretrained/modeling_transfo_xl_utilities.py:32
Method__init__
(self, params, lr=required, schedule='warmup_linear', warmup=-1, t_total=-1, b1=0.9, b2=0.999
pytorch_pretrained/optimization_openai.py:32
Method__init__
Constructs GPT2Config. Args: vocab_size_or_config_json_file: Vocabulary size of `inputs_ids` in `GPT2Model` or a configuration js
pytorch_pretrained/modeling_gpt2.py:107
Method__init__
(self, nf, nx)
pytorch_pretrained/modeling_gpt2.py:187
Method__init__
(self, nx, n_ctx, config, scale=False)
pytorch_pretrained/modeling_gpt2.py:203
Method__init__
(self, n_ctx, config, scale=False)
pytorch_pretrained/modeling_gpt2.py:271
Method__init__
(self, model_embeddings_weights, config)
pytorch_pretrained/modeling_gpt2.py:290
Method__init__
(self, config)
pytorch_pretrained/modeling_gpt2.py:310
Method__init__
(self, config, *inputs, **kwargs)
pytorch_pretrained/modeling_gpt2.py:336
Method__init__
(self, config)
pytorch_pretrained/modeling_gpt2.py:522
Method__init__
(self, config)
pytorch_pretrained/modeling_gpt2.py:607
Method__init__
(self, config)
pytorch_pretrained/modeling_gpt2.py:683
Method__init__
Constructs BertConfig. Args: vocab_size_or_config_json_file: Vocabulary size of `inputs_ids` in `BertModel`. hidden_s
pytorch_pretrained/modeling.py:137
Method__init__
Construct a layernorm module in the TF style (epsilon inside the square root).
pytorch_pretrained/modeling.py:232
Method__init__
(self, config)
pytorch_pretrained/modeling.py:249
Method__init__
(self, config)
pytorch_pretrained/modeling.py:278
Method__init__
(self, config)
pytorch_pretrained/modeling.py:329
Method__init__
(self, config)
pytorch_pretrained/modeling.py:343
Method__init__
(self, config)
pytorch_pretrained/modeling.py:355
Method__init__
(self, config)
pytorch_pretrained/modeling.py:370
Method__init__
(self, config)
pytorch_pretrained/modeling.py:398
Method__init__
(self, config)
pytorch_pretrained/modeling.py:415
Method__init__
(self, config)
pytorch_pretrained/modeling.py:430
Method__init__
(self, config, bert_model_embedding_weights)
pytorch_pretrained/modeling.py:447
Method__init__
(self, config, bert_model_embedding_weights)
pytorch_pretrained/modeling.py:466
Method__init__
(self, config)
pytorch_pretrained/modeling.py:476
Method__init__
(self, config, bert_model_embedding_weights)
pytorch_pretrained/modeling.py:486
Method__init__
(self, config, *inputs, **kwargs)
pytorch_pretrained/modeling.py:501
Method__init__
(self, config)
pytorch_pretrained/modeling.py:702
Method__init__
(self, config)
pytorch_pretrained/modeling.py:791
Method__init__
(self, config)
pytorch_pretrained/modeling.py:854
Method__init__
(self, config)
pytorch_pretrained/modeling.py:916
Method__init__
(self, config, num_labels)
pytorch_pretrained/modeling.py:980
Method__init__
(self, config, num_choices)
pytorch_pretrained/modeling.py:1045
Method__init__
(self, config, num_labels)
pytorch_pretrained/modeling.py:1115
Method__init__
(self, config)
pytorch_pretrained/modeling.py:1190
Method__init__
Constructs OpenAIGPTConfig. Args: vocab_size_or_config_json_file: Vocabulary size of `inputs_ids` in `OpenAIGPTModel` or a config
pytorch_pretrained/modeling_openai.py:131
Method__init__
(self, nf, rf, nx)
pytorch_pretrained/modeling_openai.py:233
Method__init__
(self, nx, n_ctx, config, scale=False)
pytorch_pretrained/modeling_openai.py:256
Method__init__
(self, n_ctx, config, scale=False)
pytorch_pretrained/modeling_openai.py:325
Method__init__
(self, model_embeddings_weights, config)
pytorch_pretrained/modeling_openai.py:344
Method__init__
(self, config)
pytorch_pretrained/modeling_openai.py:364
Method__init__
(self, config, *inputs, **kwargs)
pytorch_pretrained/modeling_openai.py:393
Method__init__
(self, config)
pytorch_pretrained/modeling_openai.py:593
Method__init__
(self, config)
pytorch_pretrained/modeling_openai.py:704
Method__init__
(self, config)
pytorch_pretrained/modeling_openai.py:793
Method__init__
(self, dataset)
models/bert_DPCNN.py:12
Method__init__
(self, config)
models/bert_DPCNN.py:36
← previousnext →101–200 of 349, ranked by callers