Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dheerajrajagopal/SelfExplain
/ functions
Functions
52 in github.com/dheerajrajagopal/SelfExplain
⨍
Functions
52
◇
Types & classes
7
↓ 3 callers
Method
remove_non_ascii
(text)
preprocessing/constituency_parse.py:25
↓ 2 callers
Method
__init__
(self, model_name)
model/data.py:91
↓ 2 callers
Method
_reshape_tensor
(input_tensor)
model/model_utils.py:66
↓ 2 callers
Method
add_indices_to_terminals
(self, tree)
preprocessing/constituency_parse.py:49
↓ 2 callers
Method
forward_classifier
Returns the pooled token
model/SE_XLNet.py:147
↓ 2 callers
Function
get_label
(label, version)
preprocessing/process_trec_dataset.py:20
↓ 2 callers
Method
train_dataloader
(self)
model/data.py:31
↓ 1 callers
Method
add_model_specific_args
(parent_parser)
model/SE_XLNet.py:65
↓ 1 callers
Function
chunks
Yield successive n-sized chunks from lst.
preprocessing/utils.py:3
↓ 1 callers
Function
concept_store
(model_name, input_file_name, output_folder, max_concept_length, batch_size=5)
preprocessing/build_concept_store.py:14
↓ 1 callers
Function
create_label_dict
(input_file_name, version)
preprocessing/process_trec_dataset.py:5
↓ 1 callers
Function
eval
(model, dataloader, concept_map, dev_file, paths_output_loc: str = None)
model/infer_model.py:33
↓ 1 callers
Method
get_one_hot_encoded_vector
(self, parse_tree_list, num_tokens)
preprocessing/constituency_parse.py:89
↓ 1 callers
Method
get_parse_tree_for_raw_sent
(self, raw_sent)
preprocessing/constituency_parse.py:72
↓ 1 callers
Function
get_train_steps
(dm)
model/run.py:12
↓ 1 callers
Method
gil
(self, pooled_input)
model/SE_XLNet.py:121
↓ 1 callers
Function
gil_interpret
(concept_map, list_of_interpret_dict)
model/infer_model.py:69
↓ 1 callers
Method
lil
(self, hidden_state, nt_idx_matrix)
model/SE_XLNet.py:138
↓ 1 callers
Function
lil_interpret
(logits, list_of_interpret_dict, dev_samples, current_idx)
model/infer_model.py:77
↓ 1 callers
Function
load_concept_map
(concept_map_path)
model/infer_model.py:96
↓ 1 callers
Function
load_dev_examples
(file_name)
model/infer_model.py:25
↓ 1 callers
Function
load_model
(ckpt, batch_size)
model/infer_model.py:16
↓ 1 callers
Function
main
()
preprocessing/add_ngram_dist.py:6
↓ 1 callers
Function
main
()
preprocessing/store_parse_trees.py:36
↓ 1 callers
Function
main
()
preprocessing/build_concept_store.py:50
↓ 1 callers
Function
main
()
preprocessing/process_trec_dataset.py:42
↓ 1 callers
Function
read_and_store_from_tsv
(input_file_name, output_file_name, version, label_dict)
preprocessing/process_trec_dataset.py:28
↓ 1 callers
Method
read_and_store_from_tsv
(self, input_file_name, output_file_name)
preprocessing/store_parse_trees.py:14
↓ 1 callers
Method
read_dataset
(self)
model/data.py:61
↓ 1 callers
Method
traverse_and_store
(self, tree: ParentedTree, parse_tree_stored: List[Dict]
preprocessing/constituency_parse.py:28
↓ 1 callers
Method
val_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
Method
configure_optimizers
(self)
model/SE_XLNet.py:85
Method
forward
(self, *inputs, pass_through: List[str] = None, **kwargs)
model/model_utils.py:32
Method
forward
(self, batch)
model/SE_XLNet.py:89
Method
get_parse_tree
(self, tokenized_sent)
preprocessing/constituency_parse.py:56
Method
get_progress_bar_dict
(self)
model/SE_XLNet.py:188
Function
pad_nt_matrix_roberta
(nt_idx_matrix, max_nt_len, max_length)
model/data_utils.py:4
Function
pad_nt_matrix_xlnet
(nt_idx_matrix, max_nt_len, max_length)
model/data_utils.py:11
Method
store_parse_trees
(self, output_file)
preprocessing/store_parse_trees.py:30
Method
test_dataloader
(self)
model/data.py:43
Method
test_step
(self, batch, batch_idx)
model/SE_XLNet.py:180
Method
training_step
(self, batch, batch_idx)
model/SE_XLNet.py:158
Method
validation_step
(self, batch, batch_idx)
model/SE_XLNet.py:167