MCPcopy Create free account

hub / github.com/Albert-Ma/PROP / functions

Functions183 in github.com/Albert-Ma/PROP

↓ 24 callersMethod__init__
(self, config)
pytorch_pretrain_bert/modeling.py:809
↓ 8 callersMethodfrom_pretrained
Instantiate a PreTrainedBertModel from a pre-trained model file. Download and cache the pre-trained model file if needed.
pytorch_pretrain_bert/tokenization.py:153
↓ 6 callersMethodtokenize
(self, text)
pytorch_pretrain_bert/tokenization.py:107
↓ 5 callersMethodload
(self, stemmed_word2pos)
prop/multiprocessing_generate_word_sets.py:130
↓ 3 callersMethodadd
(self, stemmed_word, word)
prop/multiprocessing_generate_word_sets.py:119
↓ 3 callersMethodconvert_tokens_to_ids
Converts a sequence of tokens into ids using the vocab.
pytorch_pretrain_bert/tokenization.py:117
↓ 3 callersMethodtranspose_for_scores
(self, x)
pytorch_pretrain_bert/modeling.py:298
↓ 3 callersFunctionwhitespace_tokenize
Runs basic whitespace cleaning and splitting on a piece of text.
pytorch_pretrain_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
pytorch_pretrain_bert/file_utils.py:89
↓ 2 callersMethodfrom_json_file
Constructs a `BertConfig` from a json file of parameters.
pytorch_pretrain_bert/modeling.py:208
↓ 2 callersMethodload
(self, stemmed_word2pos)
bprop/multiprocessing_generate_word_sets.py:92
↓ 2 callersMethodload
(module, prefix='')
pytorch_pretrain_bert/modeling.py:652
↓ 2 callersFunctionload_tf_weights_in_bert
Load tf checkpoints in a pytorch model
pytorch_pretrain_bert/modeling.py:55
↓ 2 callersFunctionsplit_s3_path
Split a full s3 path into the bucket name and path.
pytorch_pretrain_bert/file_utils.py:119
↓ 2 callersMethodto_json_string
Serializes this instance to a JSON string.
pytorch_pretrain_bert/modeling.py:222
↓ 1 callersMethod_clean_text
Performs invalid character removal and whitespace cleanup on text.
pytorch_pretrain_bert/tokenization.py:304
↓ 1 callersMethod_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
pytorch_pretrain_bert/tokenization.py:282
↓ 1 callersFunction_is_control
Checks whether `chars` is a control character.
pytorch_pretrain_bert/tokenization.py:390
↓ 1 callersFunction_is_punctuation
Checks whether `chars` is a punctuation character.
pytorch_pretrain_bert/tokenization.py:402
↓ 1 callersFunction_is_whitespace
Checks whether `chars` is a whitespace character.
pytorch_pretrain_bert/tokenization.py:378
↓ 1 callersMethod_run_split_on_punc
Splits punctuation on a piece of text.
pytorch_pretrain_bert/tokenization.py:247
↓ 1 callersMethod_run_strip_accents
Strips accents from a piece of text.
pytorch_pretrain_bert/tokenization.py:236
↓ 1 callersMethod_tokenize_chinese_chars
Adds whitespace around any CJK character.
pytorch_pretrain_bert/tokenization.py:269
↓ 1 callersMethodadd_document
(self, doc_id, document)
bprop/multiprocessing_generate_word_sets.py:45
↓ 1 callersMethodadd_document
(self, doc_id, document)
prop/preprocessing_data.py:35
↓ 1 callersMethodadd_document
(self, document)
prop/multiprocessing_generate_pairwise_instances.py:30
↓ 1 callersMethodadd_document
(self, doc_id, document)
prop/multiprocessing_generate_word_sets.py:41
↓ 1 callersMethodadd_document_tf
(self, doc_id, document_tf)
prop/multiprocessing_generate_word_sets.py:77
↓ 1 callersFunctionconvert_example_to_features
(example, max_seq_length)
run_pretraining.py:27
↓ 1 callersFunctionconvert_examples_to_features
Loads a data file into a list of `InputFeature`s.
bprop/extract_bert_attention.py:70
↓ 1 callersFunctionconvert_tf_checkpoint_to_pytorch
(tf_checkpoint_path, bert_config_file, pytorch_dump_path)
pytorch_pretrain_bert/convert_tf_checkpoint_to_pytorch.py:30
↓ 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 an
prop/multiprocessing_generate_pairwise_instances.py:67
↓ 1 callersMethodfrom_dict
Constructs a `BertConfig` from a Python dictionary of parameters.
pytorch_pretrain_bert/modeling.py:200
↓ 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.
pytorch_pretrain_bert/file_utils.py:180
↓ 1 callersFunctionhttp_get
(url, temp_file)
pytorch_pretrain_bert/file_utils.py:168
↓ 1 callersMethodinitialize_prob
(self)
bprop/multiprocessing_generate_word_sets.py:97
↓ 1 callersMethodinitialize_prob
(self)
prop/multiprocessing_generate_word_sets.py:135
↓ 1 callersFunctionload_vocab
Loads a vocabulary file into a dictionary.
pytorch_pretrain_bert/tokenization.py:50
↓ 1 callersFunctionmain
()
run_pretraining.py:150
↓ 1 callersFunctionread_examples
Read a list of `InputExample`s from an input file.
bprop/extract_bert_attention.py:194
↓ 1 callersFunctions3_etag
Check ETag on S3 object.
pytorch_pretrain_bert/file_utils.py:152
↓ 1 callersFunctions3_get
Pull a file directly from S3.
pytorch_pretrain_bert/file_utils.py:161
↓ 1 callersMethodsample
(self, count)
prop/multiprocessing_generate_word_sets.py:175
↓ 1 callersMethodsample_word
(self, item)
prop/multiprocessing_generate_word_sets.py:143
↓ 1 callersFunctionsoftmax
Compute softmax values for each sets of scores in x.
bprop/multiprocessing_generate_word_sets.py:147
↓ 1 callersFunctionsoftmax
Compute softmax values for each sets of scores in x.
prop/multiprocessing_generate_word_sets.py:273
↓ 1 callersMethodstep
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
pytorch_pretrain_bert/optimization.py:103
↓ 1 callersMethodto_dict
Serializes this instance to a Python dictionary.
pytorch_pretrain_bert/modeling.py:217
↓ 1 callersFunctiontruncate_seq_pair
Truncates a pair of sequences to a maximum sequence length. Lifted from Google's BERT repo.
prop/multiprocessing_generate_pairwise_instances.py:56
↓ 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_pretrain_bert/file_utils.py:45
↓ 1 callersFunctionwarmup_linear
Specifies a triangular learning rate schedule where peak is reached at `warmup`*`t_total`-th (as provided to BertAdam) training step. After `
pytorch_pretrain_bert/optimization.py:40
Method__contains__
(self, item)
bprop/multiprocessing_generate_word_sets.py:56
Method__contains__
(self, item)
prop/multiprocessing_generate_pairwise_instances.py:41
Method__contains__
(self, item)
prop/multiprocessing_generate_word_sets.py:52
Method__contains__
(self, item)
prop/multiprocessing_generate_word_sets.py:89
Method__enter__
(self)
bprop/multiprocessing_generate_word_sets.py:62
Method__enter__
(self)
bprop/multiprocessing_generate_word_sets.py:114
Method__enter__
(self)
prop/preprocessing_data.py:45
Method__enter__
(self)
prop/multiprocessing_generate_pairwise_instances.py:47
Method__enter__
(self)
prop/multiprocessing_generate_word_sets.py:58
Method__enter__
(self)
prop/multiprocessing_generate_word_sets.py:95
Method__enter__
(self)
prop/multiprocessing_generate_word_sets.py:152
Method__exit__
(self, exc_type, exc_val, traceback)
bprop/multiprocessing_generate_word_sets.py:65
Method__exit__
(self, exc_type, exc_val, traceback)
bprop/multiprocessing_generate_word_sets.py:117
Method__exit__
(self, exc_type, exc_val, traceback)
prop/preprocessing_data.py:48
Method__exit__
(self, exc_type, exc_val, traceback)
prop/multiprocessing_generate_pairwise_instances.py:50
Method__exit__
(self, exc_type, exc_val, traceback)
prop/multiprocessing_generate_word_sets.py:61
Method__exit__
(self, exc_type, exc_val, traceback)
prop/multiprocessing_generate_word_sets.py:98
Method__exit__
(self, exc_type, exc_val, traceback)
prop/multiprocessing_generate_word_sets.py:155
Method__getitem__
(self, item)
run_pretraining.py:119
Method__getitem__
(self, item)
bprop/multiprocessing_generate_word_sets.py:52
Method__getitem__
(self, item)
bprop/multiprocessing_generate_word_sets.py:111
Method__getitem__
(self, item)
prop/preprocessing_data.py:42
Method__getitem__
(self, item)
prop/multiprocessing_generate_pairwise_instances.py:38
Method__getitem__
(self, item)
prop/multiprocessing_generate_word_sets.py:48
Method__getitem__
(self, item)
prop/multiprocessing_generate_word_sets.py:86
Method__getitem__
(self, item)
prop/multiprocessing_generate_word_sets.py:149
Method__init__
(self, training_path, epoch, num_data_epochs, temp_dir='./', mode='train')
run_pretraining.py:59
Method__init__
(self, data_source, negtive=1)
run_pretraining.py:128
Method__init__
(self, unique_id, text_a, text_b)
bprop/extract_bert_attention.py:51
Method__init__
(self, unique_id, sentence, maps, tokens, input_ids, input_mask, input_type_ids)
bprop/extract_bert_attention.py:60
Method__init__
(self, temp_dir='./')
bprop/multiprocessing_generate_word_sets.py:37
Method__init__
(self, temp_dir)
bprop/multiprocessing_generate_word_sets.py:73
Method__init__
(self, vocabs)
bprop/multiprocessing_generate_word_sets.py:125
Method__init__
(self, temp_dir)
prop/preprocessing_data.py:27
Method__init__
(self, temp_dir='./')
prop/multiprocessing_generate_pairwise_instances.py:22
Method__init__
(self, temp_dir='./')
prop/multiprocessing_generate_word_sets.py:33
Method__init__
(self, temp_dir='./')
prop/multiprocessing_generate_word_sets.py:69
Method__init__
(self, temp_dir)
prop/multiprocessing_generate_word_sets.py:111
Method__init__
(self, vocab)
prop/multiprocessing_generate_word_sets.py:162
Method__init__
Constructs a BertTokenizer. Args: vocab_file: Path to a one-wordpiece-per-line vocabulary file do_lower_case: Whether to
pytorch_pretrain_bert/tokenization.py:77
Method__init__
Constructs a BasicTokenizer. Args: do_lower_case: Whether to lower case the input.
pytorch_pretrain_bert/tokenization.py:204
Method__init__
(self, vocab, unk_token="[UNK]", max_input_chars_per_word=100)
pytorch_pretrain_bert/tokenization.py:321
Method__init__
(self, params, lr=required, warmup=-1, t_total=-1, schedule='warmup_linear', b1=0.9, b2=0.999
pytorch_pretrain_bert/optimization.py:68
Method__init__
Constructs BertConfig. Args: vocab_size_or_config_json_file: Vocabulary size of `inputs_ids` in `BertModel`. hidden_s
pytorch_pretrain_bert/modeling.py:141
Method__init__
Construct a layernorm module in the TF style (epsilon inside the square root).
pytorch_pretrain_bert/modeling.py:236
Method__init__
(self, config)
pytorch_pretrain_bert/modeling.py:253
Method__init__
(self, config)
pytorch_pretrain_bert/modeling.py:282
Method__init__
(self, config)
pytorch_pretrain_bert/modeling.py:344
Method__init__
(self, config)
pytorch_pretrain_bert/modeling.py:358
next →1–100 of 183, ranked by callers