MCPcopy Create free account

hub / github.com/circlePi/Pretraining-Yourself-Bert-From-Scratch / functions

Functions114 in github.com/circlePi/Pretraining-Yourself-Bert-From-Scratch

↓ 23 callersMethod__init__
(self, config)
lm_smallBert/pytorch_pretrained_bert/modeling.py:384
↓ 4 callersMethod__init__
(self, params, lr=required, warmup=-1, t_total=-1, schedule='warmup_linear', b1=0.9, b2=0.999
lm_smallBert/pytorch_pretrained_bert/optimization.py:193
↓ 3 callersMethodtranspose_for_scores
(self, x)
lm_smallBert/pytorch_pretrained_bert/modeling.py:294
↓ 3 callersFunctionwhitespace_tokenize
Runs basic whitespace cleaning and splitting on a piece of text.
lm_smallBert/pytorch_pretrained_bert/tokenization.py:65
↓ 2 callersFunctioncached_path
Given something that might be a URL (or might be a local path), determine which. If it's a URL, download the file and cache it, and retur
lm_smallBert/pytorch_pretrained_bert/file_utils.py:88
↓ 2 callersFunctionconvert_examples_to_features
(examples, max_seq_length, tokenizer)
lm_smallBert/run_pretraining.py:104
↓ 2 callersMethodconvert_tokens_to_ids
Converts a sequence of tokens into ids using the vocab.
lm_smallBert/pytorch_pretrained_bert/tokenization.py:117
↓ 2 callersFunctioncreate_examples
Creates examples for the training and dev sets.
lm_smallBert/run_pretraining.py:80
↓ 2 callersMethodfrom_json_file
Constructs a `BertConfig` from a json file of parameters.
lm_smallBert/pytorch_pretrained_bert/modeling.py:204
↓ 2 callersMethodload
(module, prefix='')
lm_smallBert/pytorch_pretrained_bert/modeling.py:629
↓ 2 callersFunctionsplit_s3_path
Split a full s3 path into the bucket name and path.
lm_smallBert/pytorch_pretrained_bert/file_utils.py:118
↓ 2 callersMethodto_json_string
Serializes this instance to a JSON string.
lm_smallBert/pytorch_pretrained_bert/modeling.py:218
↓ 1 callersMethod_clean_text
Performs invalid character removal and whitespace cleanup on text.
lm_smallBert/pytorch_pretrained_bert/tokenization.py:304
↓ 1 callersMethod_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
lm_smallBert/pytorch_pretrained_bert/tokenization.py:282
↓ 1 callersFunction_is_control
Checks whether `chars` is a control character.
lm_smallBert/pytorch_pretrained_bert/tokenization.py:390
↓ 1 callersFunction_is_punctuation
Checks whether `chars` is a punctuation character.
lm_smallBert/pytorch_pretrained_bert/tokenization.py:402
↓ 1 callersFunction_is_whitespace
Checks whether `chars` is a whitespace character.
lm_smallBert/pytorch_pretrained_bert/tokenization.py:378
↓ 1 callersMethod_run_split_on_punc
Splits punctuation on a piece of text.
lm_smallBert/pytorch_pretrained_bert/tokenization.py:247
↓ 1 callersMethod_run_strip_accents
Strips accents from a piece of text.
lm_smallBert/pytorch_pretrained_bert/tokenization.py:236
↓ 1 callersMethod_tokenize_chinese_chars
Adds whitespace around any CJK character.
lm_smallBert/pytorch_pretrained_bert/tokenization.py:269
↓ 1 callersFunctioncreate_masked_lm_predictions
Creates the predictions for the masked LM objective. This is mostly copied from the Google BERT repo, but with several refactors to clean it up a
lm_smallBert/run_pretraining.py:45
↓ 1 callersMethodfrom_dict
Constructs a `BertConfig` from a Python dictionary of parameters.
lm_smallBert/pytorch_pretrained_bert/modeling.py:196
↓ 1 callersFunctionget_from_cache
Given a URL, look for the corresponding dataset in the local cache. If it's not there, download it. Then return the path to the cached file.
lm_smallBert/pytorch_pretrained_bert/file_utils.py:179
↓ 1 callersMethodget_lr
(self)
lm_smallBert/pytorch_pretrained_bert/optimization.py:218
↓ 1 callersMethodget_lr_
:param progress: value between 0 and 1 (unless going beyond t_total steps) specifying training progress :return: learni
lm_smallBert/pytorch_pretrained_bert/optimization.py:73
↓ 1 callersFunctionhttp_get
(url, temp_file)
lm_smallBert/pytorch_pretrained_bert/file_utils.py:167
↓ 1 callersFunctionload_tf_weights_in_bert
Load tf checkpoints in a pytorch model
lm_smallBert/pytorch_pretrained_bert/modeling.py:51
↓ 1 callersFunctionload_vocab
Loads a vocabulary file into a dictionary.
lm_smallBert/pytorch_pretrained_bert/tokenization.py:50
↓ 1 callersFunctionmain
()
lm_smallBert/run_pretraining.py:138
↓ 1 callersFunctions3_etag
Check ETag on S3 object.
lm_smallBert/pytorch_pretrained_bert/file_utils.py:151
↓ 1 callersFunctions3_get
Pull a file directly from S3.
lm_smallBert/pytorch_pretrained_bert/file_utils.py:160
↓ 1 callersMethodstep
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
lm_smallBert/pytorch_pretrained_bert/optimization.py:230
↓ 1 callersMethodto_dict
Serializes this instance to a Python dictionary.
lm_smallBert/pytorch_pretrained_bert/modeling.py:213
↓ 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.
lm_smallBert/pytorch_pretrained_bert/file_utils.py:44
↓ 1 callersFunctionwarmup_linear
(x, warmup=0.002)
lm_smallBert/run_pretraining.py:30
Method__init__
(self, input_ids, input_mask, segment_ids, label_id)
lm_smallBert/run_pretraining.py:38
Method__init__
Constructs a BertTokenizer. Args: vocab_file: Path to a one-wordpiece-per-line vocabulary file do_lower_case: Whether to
lm_smallBert/pytorch_pretrained_bert/tokenization.py:77
Method__init__
Constructs a BasicTokenizer. Args: do_lower_case: Whether to lower case the input.
lm_smallBert/pytorch_pretrained_bert/tokenization.py:204
Method__init__
(self, vocab, unk_token="[UNK]", max_input_chars_per_word=100)
lm_smallBert/pytorch_pretrained_bert/tokenization.py:321
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
lm_smallBert/pytorch_pretrained_bert/optimization.py:38
Method__init__
:param warmup: see LRSchedule :param t_total: see LRSchedule :param cycles: number of cycles. Default: 0.5, cor
lm_smallBert/pytorch_pretrained_bert/optimization.py:91
Method__init__
(self, warmup=0.002, t_total=-1, cycles=1., **kw)
lm_smallBert/pytorch_pretrained_bert/optimization.py:113
Method__init__
(self, warmup=0.002, t_total=-1, cycles=1., **kw)
lm_smallBert/pytorch_pretrained_bert/optimization.py:132
Method__init__
Constructs BertConfig. Args: vocab_size_or_config_json_file: Vocabulary size of `inputs_ids` in `BertModel`. hidden_s
lm_smallBert/pytorch_pretrained_bert/modeling.py:137
Method__init__
Construct a layernorm module in the TF style (epsilon inside the square root).
lm_smallBert/pytorch_pretrained_bert/modeling.py:232
Method__init__
(self, config)
lm_smallBert/pytorch_pretrained_bert/modeling.py:249
Method__init__
(self, config)
lm_smallBert/pytorch_pretrained_bert/modeling.py:278
Method__init__
(self, config)
lm_smallBert/pytorch_pretrained_bert/modeling.py:329
Method__init__
(self, config)
lm_smallBert/pytorch_pretrained_bert/modeling.py:343
Method__init__
(self, config)
lm_smallBert/pytorch_pretrained_bert/modeling.py:355
Method__init__
(self, config)
lm_smallBert/pytorch_pretrained_bert/modeling.py:370
Method__init__
(self, config)
lm_smallBert/pytorch_pretrained_bert/modeling.py:398
Method__init__
(self, config)
lm_smallBert/pytorch_pretrained_bert/modeling.py:415
Method__init__
(self, config)
lm_smallBert/pytorch_pretrained_bert/modeling.py:430
Method__init__
(self, config, bert_model_embedding_weights)
lm_smallBert/pytorch_pretrained_bert/modeling.py:447
Method__init__
(self, config, bert_model_embedding_weights)
lm_smallBert/pytorch_pretrained_bert/modeling.py:466
Method__init__
(self, config)
lm_smallBert/pytorch_pretrained_bert/modeling.py:476
Method__init__
(self, config, bert_model_embedding_weights)
lm_smallBert/pytorch_pretrained_bert/modeling.py:486
Method__init__
(self, config, *inputs, **kwargs)
lm_smallBert/pytorch_pretrained_bert/modeling.py:501
Method__init__
(self, config)
lm_smallBert/pytorch_pretrained_bert/modeling.py:696
Method__init__
(self, config)
lm_smallBert/pytorch_pretrained_bert/modeling.py:785
Method__init__
(self, config)
lm_smallBert/pytorch_pretrained_bert/modeling.py:848
Method__init__
(self, config)
lm_smallBert/pytorch_pretrained_bert/modeling.py:910
Method__init__
(self, config, num_labels)
lm_smallBert/pytorch_pretrained_bert/modeling.py:974
Method__init__
(self, config, num_choices)
lm_smallBert/pytorch_pretrained_bert/modeling.py:1039
Method__init__
(self, config, num_labels)
lm_smallBert/pytorch_pretrained_bert/modeling.py:1109
Method__init__
(self, config)
lm_smallBert/pytorch_pretrained_bert/modeling.py:1184
Method__repr__
(self)
lm_smallBert/pytorch_pretrained_bert/modeling.py:210
Methodconvert_ids_to_tokens
Converts a sequence of ids in wordpiece tokens using the vocab.
lm_smallBert/pytorch_pretrained_bert/tokenization.py:130
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
lm_smallBert/pytorch_pretrained_bert/file_utils.py:62
Methodforward
(self, x)
lm_smallBert/pytorch_pretrained_bert/modeling.py:240
Methodforward
(self, input_ids, token_type_ids=None)
lm_smallBert/pytorch_pretrained_bert/modeling.py:260
Methodforward
(self, hidden_states, attention_mask)
lm_smallBert/pytorch_pretrained_bert/modeling.py:299
Methodforward
(self, hidden_states, input_tensor)
lm_smallBert/pytorch_pretrained_bert/modeling.py:335
Methodforward
(self, input_tensor, attention_mask)
lm_smallBert/pytorch_pretrained_bert/modeling.py:348
Methodforward
(self, hidden_states)
lm_smallBert/pytorch_pretrained_bert/modeling.py:363
Methodforward
(self, hidden_states, input_tensor)
lm_smallBert/pytorch_pretrained_bert/modeling.py:376
Methodforward
(self, hidden_states, attention_mask)
lm_smallBert/pytorch_pretrained_bert/modeling.py:390
Methodforward
(self, hidden_states, attention_mask, output_all_encoded_layers=True)
lm_smallBert/pytorch_pretrained_bert/modeling.py:403
Methodforward
(self, hidden_states)
lm_smallBert/pytorch_pretrained_bert/modeling.py:420
Methodforward
(self, hidden_states)
lm_smallBert/pytorch_pretrained_bert/modeling.py:439
Methodforward
(self, hidden_states)
lm_smallBert/pytorch_pretrained_bert/modeling.py:459
Methodforward
(self, sequence_output)
lm_smallBert/pytorch_pretrained_bert/modeling.py:470
Methodforward
(self, pooled_output)
lm_smallBert/pytorch_pretrained_bert/modeling.py:480
Methodforward
(self, sequence_output, pooled_output)
lm_smallBert/pytorch_pretrained_bert/modeling.py:491
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, output_all_encoded_layers=True)
lm_smallBert/pytorch_pretrained_bert/modeling.py:703
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, masked_lm_labels=None, next_sentence_label=None)
lm_smallBert/pytorch_pretrained_bert/modeling.py:791
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, masked_lm_labels=None)
lm_smallBert/pytorch_pretrained_bert/modeling.py:854
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, next_sentence_label=None)
lm_smallBert/pytorch_pretrained_bert/modeling.py:916
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, labels=None)
lm_smallBert/pytorch_pretrained_bert/modeling.py:982
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, labels=None)
lm_smallBert/pytorch_pretrained_bert/modeling.py:1047
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, labels=None)
lm_smallBert/pytorch_pretrained_bert/modeling.py:1117
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, start_positions=None, end_positions=None)
lm_smallBert/pytorch_pretrained_bert/modeling.py:1192
Methodfrom_pretrained
Instantiate a PreTrainedBertModel from a pre-trained model file. Download and cache the pre-trained model file if needed.
lm_smallBert/pytorch_pretrained_bert/tokenization.py:153
Methodfrom_pretrained
Instantiate a BertPreTrainedModel from a pre-trained model file or a pytorch state dict. Download and cache the pre-trained model fil
lm_smallBert/pytorch_pretrained_bert/modeling.py:526
Functiongelu
Implementation of the gelu activation function. For information: OpenAI GPT's gelu is slightly different (and gives slightly different results
lm_smallBert/pytorch_pretrained_bert/modeling.py:118
Functionget_file_extension
(path, dot=True, lower=True)
lm_smallBert/pytorch_pretrained_bert/file_utils.py:267
Methodget_lr
:param step: which of t_total steps we're on :param nowarn: set to True to suppress warning regarding training beyond specified '
lm_smallBert/pytorch_pretrained_bert/optimization.py:53
Methodget_lr_
(self, progress)
lm_smallBert/pytorch_pretrained_bert/optimization.py:82
Methodget_lr_
(self, progress)
lm_smallBert/pytorch_pretrained_bert/optimization.py:101
next →1–100 of 114, ranked by callers