MCPcopy Create free account

hub / github.com/DevSinghSachan/syntax-augmented-bert / functions

Functions302 in github.com/DevSinghSachan/syntax-augmented-bert

↓ 1 callersMethodforward
(self, input_ids, token_type_ids=None, wp_token_mask=None, dep_head=None, dep_
model/syntax_roberta.py:168
↓ 1 callersFunctionfp16_to_fp32
Convert fp16 `val` to fp32
fp16/fp16_opt.py:48
↓ 1 callersFunctionfp32_to_fp16
Convert fp32 `val` to fp16
fp16/fp16_opt.py:37
↓ 1 callersFunctionget_args
()
opt.py:6
↓ 1 callersMethodget_chunk_type
Args: tok: id of token, ex 4 idx_to_tag: dictionary {4: "B-PER", ...} Returns: tuple: "B", "PER"
utils/utils.py:511
↓ 1 callersMethodget_dev_examples
Gets a collection of `InputExample`s for the dev set.
utils/utils.py:80
↓ 1 callersMethodget_test_examples
See base class.
utils/utils.py:118
↓ 1 callersMethodget_train_examples
Gets a collection of `InputExample`s for the train set.
utils/utils.py:76
↓ 1 callersMethodhas_overflow
(self, params)
fp16/loss_scaler.py:41
↓ 1 callersFunctionhead_to_tree
Convert a sequence of head indexes into a tree object.
model/tree.py:74
↓ 1 callersMethodinputs_to_tree_reps
(self, dep_head, seq_len, subj_pos, obj_pos, dep_rel, device)
model/syntax_bert.py:335
↓ 1 callersFunctionlog_sum_exp_matrix_batch
(matrix)
model/crf.py:45
↓ 1 callersFunctionmain
()
main.py:292
↓ 1 callersFunctionmake_learning_rate_scheduler
(opt, optimizer)
utils/optimizers.py:168
↓ 1 callersMethodmap_to_label_id
(self, label)
utils/loader.py:153
↓ 1 callersFunctionmodel_grads_to_master_grads
Copy model gradients to master gradients. Args: model_params: List of model parameters created by :func:`prep_param_lists`.
fp16/fp16util.py:149
↓ 1 callersMethodpostprocess_attention_mask
(self, mask)
model/syntax_bert.py:364
↓ 1 callersFunctionread_json
(config_path)
utils/update_config.py:7
↓ 1 callersMethodreset
(self)
utils/utils.py:761
↓ 1 callersFunctionrnn_zero_state
(batch_size, hidden_size, num_layers, bidirectional=True, use_cuda=True)
model/graph_encoder.py:44
↓ 1 callersFunctionsave_to_json
(data, out_file_path)
utils/conll_to_jsonl.py:6
↓ 1 callersMethodsentence_iterator
An iterator over the sentences in an individual CONLL formatted file.
dataset_reader/ontonotes_utils.py:235
↓ 1 callersMethodtext_to_instance
We take `pre-tokenized` input here, because we don't have a tokenizer in this class.
dataset_reader/ontonotes_ner_reader.py:78
↓ 1 callersMethodto_linguistic_space
(cls, wp_tensor, wp_rows, align_sizes, wp_seq_lengths)
model/syntax_bert.py:375
↓ 1 callersFunctionto_scalar
(var)
model/crf.py:12
↓ 1 callersFunctiontrain
Train the model
main.py:51
↓ 1 callersFunctiontree_to_adj
Convert a tree object to an (numpy) adjacency matrix.
model/tree.py:182
↓ 1 callersFunctiontruncated_normal
Outputs random values from a truncated normal distribution. The generated values follow a normal distribution with specified mean and standard
model/graph_encoder.py:15
↓ 1 callersFunctionupdate_dict
https://stackoverflow.com/questions/3232943/update-value-of-a-nested-dictionary-of-varying-depth
utils/update_config.py:26
↓ 1 callersMethodupdate_master_grads
Copy the ``.grad`` attribute from stored references to fp16 parameters to the ``.grad`` attribute of the fp32 master parameters that
fp16/fp16_opt.py:554
↓ 1 callersMethodupdate_scale
(self, overflow)
fp16/loss_scaler.py:48
Method__call__
(self, model_parameters, params)
utils/optimizers.py:34
Method__getitem__
(self, i)
utils/loader.py:150
Method__getstate__
(self)
fp16/fp16_opt.py:244
Method__init__
(self, dataset, opt, eval=False, **kwargs)
utils/loader.py:282
Method__init__
Constructs a InputExample. Args: guid: Unique id for the example. text_a: string. The untokenized text of the first se
utils/utils.py:27
Method__init__
(self, example_index, input_ids, input_mask, segment_ids, label_id, dep_head, dep_rel, wp_row
utils/utils.py:53
Method__init__
(self)
utils/utils.py:144
Method__init__
(self)
utils/utils.py:195
Method__init__
(self)
utils/utils.py:258
Method__init__
(self)
utils/utils.py:314
Method__init__
(self)
utils/utils.py:351
Method__init__
(self, tag_to_idx, verbose=False)
utils/utils.py:417
Method__init__
(self, tag_to_idx, srl_eval_path=DEFAULT_SRL_EVAL_PATH, ignore_classes=['V'])
utils/utils.py:608
Method__init__
(self, optimizer, freeze_steps, warmup_steps, t_total, last_epoch=-1)
utils/schedulers.py:27
Method__init__
(self, sc)
utils/optimizers.py:186
Method__init__
?
utils/optimizers.py:203
Method__init__
(self, params, lr=1e-3, betas=(0.9, 0.999), eps=1e-8)
utils/optimizers.py:259
Method__init__
(self, domain_identifier: str = None, bert_model_name: str = None)
dataset_reader/conll2005_reader.py:67
Method__init__
( self, document_id: str, sentence_id: int, words: List[str], pos_tags
dataset_reader/conll2005_utils.py:42
Method__init__
( self, document_id: str, sentence_id: int, words: List[str], pos_tags
dataset_reader/ontonotes_utils.py:60
Method__init__
(self, domain_identifier: str = None, bert_model_name: str = None)
dataset_reader/ontonotes_srl_reader.py:119
Method__init__
(self, domain_identifier: str = None, coding_scheme: str = "BIO")
dataset_reader/ontonotes_ner_reader.py:45
Method__init__
(self, model)
model/loss.py:32
Method__init__
(self, config)
model/graph_encoder.py:83
Method__init__
(self, config)
model/graph_encoder.py:111
Method__init__
(self, config)
model/graph_encoder.py:253
Method__init__
(self, config)
model/graph_encoder.py:272
Method__init__
(self, config, activation_dropout=0.1)
model/graph_encoder.py:317
Method__init__
(self, config)
model/graph_encoder.py:333
Method__init__
(self, in_out_size, bias=True)
model/gate.py:6
Method__init__
(self, in_out_size, bias=True)
model/gate.py:16
Method__init__
(self, in_out_size, bias=True)
model/gate.py:26
Method__init__
(self)
model/gate.py:59
Method__init__
(self)
model/tree.py:15
Method__init__
(self, label_map, config, transitions)
model/crf.py:54
Method__init__
(self, vocab_size_or_config_json_file=50625, hidden_size=768,
model/syntax_roberta.py:44
Method__init__
(self, config)
model/syntax_roberta.py:93
Method__init__
(self, config)
model/syntax_roberta.py:134
Method__init__
(self, config)
model/syntax_roberta.py:194
Method__init__
(self, vocab_size_or_config_json_file=30522, hidden_size=768,
model/syntax_bert.py:36
Method__init__
(self, config)
model/syntax_bert.py:82
Method__init__
(self, config)
model/syntax_bert.py:147
Method__init__
(self, config)
model/syntax_bert.py:166
Method__init__
(self, config)
model/syntax_bert.py:187
Method__init__
(self, config)
model/syntax_bert.py:207
Method__init__
(self, *inputs, **kwargs)
model/syntax_bert.py:250
Method__init__
(self, config)
model/syntax_bert.py:314
Method__init__
(self, config)
model/syntax_bert.py:452
Method__init__
(self, config)
model/syntax_bert.py:491
Method__init__
(self, module)
fp16/fp16_opt.py:60
Method__init__
(self, init_optimizer, static_loss_scale=1.0, dynamic_lo
fp16/fp16_opt.py:168
Method__init__
(self, network)
fp16/fp16util.py:91
Method__init__
(self, scale=1)
fp16/loss_scaler.py:37
Method__init__
(self, init_scale=2**32, scale_factor=2., scale_window=1000
fp16/loss_scaler.py:88
Method__iter__
(self)
utils/utils.py:65
Method__iter__
(self)
model/tree.py:47
Method__len__
(self)
utils/loader.py:147
Method__next__
(self)
utils/utils.py:68
Method__repr__
(self)
model/crf.py:64
Method__setstate__
(self, state)
fp16/fp16_opt.py:247
Method_collate_fn
(self, batch_data)
utils/loader.py:290
Method_get_loss_scale
(self)
fp16/fp16_opt.py:602
Method_get_param_groups
(self)
fp16/fp16_opt.py:621
Method_get_state
(self)
fp16/fp16_opt.py:611
Method_has_inf_or_nan
(x)
fp16/loss_scaler.py:114
Method_init_weights
Initialize the weights.
model/syntax_bert.py:253
Method_model_params_to_master_params
(self)
fp16/fp16_opt.py:293
Method_read
(self, file_path: str)
dataset_reader/conll2005_reader.py:123
Method_read
(self, file_path: str)
dataset_reader/ontonotes_srl_reader.py:180
← previousnext →101–200 of 302, ranked by callers