MCPcopy Create free account

hub / github.com/dheerajrajagopal/SelfExplain / functions

Functions52 in github.com/dheerajrajagopal/SelfExplain

↓ 3 callersMethodremove_non_ascii
(text)
preprocessing/constituency_parse.py:25
↓ 2 callersMethod__init__
(self, model_name)
model/data.py:91
↓ 2 callersMethod_reshape_tensor
(input_tensor)
model/model_utils.py:66
↓ 2 callersMethodadd_indices_to_terminals
(self, tree)
preprocessing/constituency_parse.py:49
↓ 2 callersMethodforward_classifier
Returns the pooled token
model/SE_XLNet.py:147
↓ 2 callersFunctionget_label
(label, version)
preprocessing/process_trec_dataset.py:20
↓ 2 callersMethodtrain_dataloader
(self)
model/data.py:31
↓ 1 callersMethodadd_model_specific_args
(parent_parser)
model/SE_XLNet.py:65
↓ 1 callersFunctionchunks
Yield successive n-sized chunks from lst.
preprocessing/utils.py:3
↓ 1 callersFunctionconcept_store
(model_name, input_file_name, output_folder, max_concept_length, batch_size=5)
preprocessing/build_concept_store.py:14
↓ 1 callersFunctioncreate_label_dict
(input_file_name, version)
preprocessing/process_trec_dataset.py:5
↓ 1 callersFunctioneval
(model, dataloader, concept_map, dev_file, paths_output_loc: str = None)
model/infer_model.py:33
↓ 1 callersMethodget_one_hot_encoded_vector
(self, parse_tree_list, num_tokens)
preprocessing/constituency_parse.py:89
↓ 1 callersMethodget_parse_tree_for_raw_sent
(self, raw_sent)
preprocessing/constituency_parse.py:72
↓ 1 callersFunctionget_train_steps
(dm)
model/run.py:12
↓ 1 callersMethodgil
(self, pooled_input)
model/SE_XLNet.py:121
↓ 1 callersFunctiongil_interpret
(concept_map, list_of_interpret_dict)
model/infer_model.py:69
↓ 1 callersMethodlil
(self, hidden_state, nt_idx_matrix)
model/SE_XLNet.py:138
↓ 1 callersFunctionlil_interpret
(logits, list_of_interpret_dict, dev_samples, current_idx)
model/infer_model.py:77
↓ 1 callersFunctionload_concept_map
(concept_map_path)
model/infer_model.py:96
↓ 1 callersFunctionload_dev_examples
(file_name)
model/infer_model.py:25
↓ 1 callersFunctionload_model
(ckpt, batch_size)
model/infer_model.py:16
↓ 1 callersFunctionmain
()
preprocessing/add_ngram_dist.py:6
↓ 1 callersFunctionmain
()
preprocessing/store_parse_trees.py:36
↓ 1 callersFunctionmain
()
preprocessing/build_concept_store.py:50
↓ 1 callersFunctionmain
()
preprocessing/process_trec_dataset.py:42
↓ 1 callersFunctionread_and_store_from_tsv
(input_file_name, output_file_name, version, label_dict)
preprocessing/process_trec_dataset.py:28
↓ 1 callersMethodread_and_store_from_tsv
(self, input_file_name, output_file_name)
preprocessing/store_parse_trees.py:14
↓ 1 callersMethodread_dataset
(self)
model/data.py:61
↓ 1 callersMethodtraverse_and_store
(self, tree: ParentedTree, parse_tree_stored: List[Dict]
preprocessing/constituency_parse.py:28
↓ 1 callersMethodval_dataloader
(self)
model/data.py:37
Method__call__
(self, batch)
model/data.py:100
Method__getitem__
(self, i)
model/data.py:83
Method__init__
(self, tokenizer_name)
preprocessing/store_parse_trees.py:10
Method__init__
(self, tokenizer_name, cached_parses=None)
preprocessing/constituency_parse.py:11
Method__init__
(self, module)
model/model_utils.py:27
Method__init__
(self, hparams)
model/SE_XLNet.py:14
Method__init__
(self, basedir: str, tokenizer_name: str, batch_size: int, num_workers: int = 16)
model/data.py:17
Method__init__
(self, tokenizer, data_path: str)
model/data.py:54
Method__len__
(self)
model/data.py:80
Methodconfigure_optimizers
(self)
model/SE_XLNet.py:85
Methodforward
(self, *inputs, pass_through: List[str] = None, **kwargs)
model/model_utils.py:32
Methodforward
(self, batch)
model/SE_XLNet.py:89
Methodget_parse_tree
(self, tokenized_sent)
preprocessing/constituency_parse.py:56
Methodget_progress_bar_dict
(self)
model/SE_XLNet.py:188
Functionpad_nt_matrix_roberta
(nt_idx_matrix, max_nt_len, max_length)
model/data_utils.py:4
Functionpad_nt_matrix_xlnet
(nt_idx_matrix, max_nt_len, max_length)
model/data_utils.py:11
Methodstore_parse_trees
(self, output_file)
preprocessing/store_parse_trees.py:30
Methodtest_dataloader
(self)
model/data.py:43
Methodtest_step
(self, batch, batch_idx)
model/SE_XLNet.py:180
Methodtraining_step
(self, batch, batch_idx)
model/SE_XLNet.py:158
Methodvalidation_step
(self, batch, batch_idx)
model/SE_XLNet.py:167