MCPcopy Create free account

hub / github.com/XiangLi1999/syntactic-VIB / functions

Functions199 in github.com/XiangLi1999/syntactic-VIB

↓ 16 callersMethodforward_sent
used for some evaluation scripts, not for training
src/gaussian_tag.py:41
↓ 14 callersMethodparse_dev_batch
(self, corpus, out_path)
src/baselines.py:247
↓ 13 callersMethod_test_ok
(self, gold, system, correct)
src/utils/evaluation_script/conll17_ud_eval.py:529
↓ 12 callersMethodforward
Parameters ---------- words : Dict[str, torch.LongTensor], required The output of ``TextField.as_array()``, which
src/allen_parser.py:159
↓ 12 callersFunctionsvm_eval
(gamma_lst, X, y)
src/experiment_helper.py:342
↓ 11 callersMethod_get_embeddings
(self, sent_lst)
src/conllu_handler.py:375
↓ 10 callersFunctionload_elmo
(data_loader, args, embed_loader, mod='train', processed_sent_dev=None, processed_sent_test=None)
src/others.py:2
↓ 9 callersFunctionalignment_score
(alignment, key_fn, weight_fn=lambda w: 1)
src/utils/evaluation_script/conll17_ud_eval.py:285
↓ 8 callersMethodelmo_embeddings_first
(self, processed_sent, number_sent, store_file=None)
src/conllu_handler.py:540
↓ 8 callersMethodload_dev
(self, dataset_dev_path)
src/conllu_handler.py:48
↓ 8 callersMethodload_dev_verbo
(self, dataset_dev_path)
src/conllu_handler.py:57
↓ 7 callersMethodparse_dev_batch
(self, corpus, elmo_embeds, non_context_embeds, out_path)
src/discrete_tag.py:269
↓ 6 callersFunctiondev_token_loader_batch
(dev_sent, embed_loader, dim=1)
src/experiment_helper.py:73
↓ 6 callersMethodload_dev_with_tags
(self, dataset_dev_path)
src/conllu_handler.py:66
↓ 6 callersFunctionname_map2embed
(name_map, embeds)
src/experiment_helper.py:514
↓ 6 callersMethodsave_model
(self, path)
src/baselines.py:355
↓ 6 callersMethodtrain
(self, x_lst, data, sent_per_epoch)
src/baselines.py:54
↓ 4 callersMethod__init__
(self, tag_dict, options)
src/baselines.py:205
↓ 4 callersMethod_is_projective
Checks if a dependency graph is projective
src/conllu_handler.py:190
↓ 4 callersMethod_is_projective
Checks if a dependency graph is projective
src/conllu_handler.py:823
↓ 4 callersFunction_load_data
()
src/main.py:42
↓ 4 callersMethod_load_words
Prepare fake CoNLL-U files with fake HEAD to prevent multiple roots errors.
src/utils/evaluation_script/conll17_ud_eval.py:511
↓ 4 callersFunction_start_
()
src/main.py:26
↓ 4 callersFunctiondev_token_loader
(dev_path, dev_sent, embed_loader, dim=1)
src/others.py:88
↓ 4 callersMethodelmo_embeddings
(self, processed_sent, number_sent, lang='en', args=None)
src/conllu_handler.py:506
↓ 4 callersFunctionget_stem
(processed_sent, stemmer, stem_dict)
src/experiment_helper.py:193
↓ 4 callersFunctionlower
(text)
src/utils/evaluation_script/conll17_ud_eval.py:266
↓ 4 callersMethodparse_dev
(self, x_lst, data)
src/baselines.py:110
↓ 4 callersMethodpre_process_data_
(self, path)
src/conllu_handler.py:138
↓ 4 callersMethodpre_process_data_
(self, path)
src/conllu_handler.py:771
↓ 4 callersFunctiontransitive_data_process
( x_lst, tag_lst, tree_lst, edge_lst)
src/experiment_helper.py:520
↓ 3 callersMethodapply_dict
(self, dev_data)
src/conllu_handler.py:332
↓ 3 callersMethodapply_dict
(self, dev_data)
src/conllu_handler.py:965
↓ 3 callersMethodelmo_embeddings_first_batch
(batch, sequence_length, 50) returns dict
src/conllu_handler.py:487
↓ 3 callersMethodget_tree_dev
(self, train_data)
src/conllu_handler.py:260
↓ 3 callersMethodget_tree_dev
(self, train_data)
src/conllu_handler.py:893
↓ 3 callersFunctionload_elmo_batch
(data_loader, args, embed_loader, mod='train', processed_sent_dev=None, processed_sent_test=None)
src/experiment_helper.py:14
↓ 3 callersMethodload_model
(self, path)
src/baselines.py:359
↓ 3 callersFunctiontrain_token_loader_batch
(data_loader, embed_loader, dim=1)
src/experiment_helper.py:80
↓ 2 callersMethod__setattr__
(self, key, value)
src/glo.py:64
↓ 2 callersMethod_construct_loss
Computes the arc and tag loss for a sequence given gold head indices and tags. Parameters ---------- head_tag_repres
src/allen_parser.py:326
↓ 2 callersMethod_get_head_tags
Decodes the head tags given the head and child tag representations and a tensor of head indices to compute tags for. Note that these
src/allen_parser.py:554
↓ 2 callersFunction_load_pretrain_emb
(data_loader, en_batch_dev = None, en_batch_test=None)
src/main.py:69
↓ 2 callersMethodadd
(self, dict)
src/glo.py:76
↓ 2 callersMethodappend_aligned_words
(self, gold_word, system_word)
src/utils/evaluation_script/conll17_ud_eval.py:253
↓ 2 callersMethodbatchify
(self, corpus, bsz)
src/conllu_handler.py:646
↓ 2 callersFunctionbeyond_end
(words, i, multiword_span_end)
src/utils/evaluation_script/conll17_ud_eval.py:307
↓ 2 callersMethodcompute_y_t_batch
this is a variational bound. q(y|t) namely the decoder. This returns a log-probability, total_error_number, and t
src/discrete_tag.py:176
↓ 2 callersMethodcompute_y_t_batch
this is a variational bound. q(y|t) namely the decoder. This returns a log-probability, total_error_number, and t
src/gaussian_tag.py:169
↓ 2 callersMethodcompute_y_t_batch
this is a variational bound. q(y|t) namely the decoder. This returns a log-probability, total_error_number, and t
src/baselines.py:182
↓ 2 callersMethodeval_dev_discrete
(self, word_lst, pos_lst, elmo_train)
src/baselines.py:750
↓ 2 callersFunctionevaluate
(gold_ud, system_ud, deprel_weights=None)
src/utils/evaluation_script/conll17_ud_eval.py:234
↓ 2 callersFunctionextend_end
(word, multiword_span_end)
src/utils/evaluation_script/conll17_ud_eval.py:314
↓ 2 callersFunctionfetch_paths
(lang)
src/lang_select.py:21
↓ 2 callersMethodforward_batch
(self, sample_sentence, sample_tag = None, type_embeds=None, non_context_embeds=None)
src/discrete_tag.py:201
↓ 2 callersMethodforward_batch
(self, sample_sentence, sample_tag = None, type_embeds=None, non_context_embeds=None)
src/gaussian_tag.py:189
↓ 2 callersMethodforward_batch
(self, sample_sentence, tags=None)
src/baselines.py:237
↓ 2 callersMethodforward_batch
(self, sample_sentence, embeds=None)
src/baselines.py:405
↓ 2 callersFunctionget_logger
(level=logging.INFO)
src/glo.py:15
↓ 2 callersMethodget_part_elmo
(self, batch_)
src/conllu_handler.py:399
↓ 2 callersMethodget_sample_from_param_batch
(self, alpha, sample_size)
src/discrete_tag.py:80
↓ 2 callersMethodget_statistics_batch
(self, sent, elmo_embeds)
src/discrete_tag.py:72
↓ 2 callersMethodget_statistics_batch
(self, sent, elmo_embeds)
src/gaussian_tag.py:75
↓ 2 callersMethodkl_div
(self, alpha1, alpha2)
src/discrete_tag.py:169
↓ 2 callersMethodkl_div
Calculates the KL divergence between a categorical distribution and a uniform categorical distribution. Parameters --
src/gaussian_tag.py:140
↓ 2 callersFunctionload_conllu
(file)
src/utils/evaluation_script/conll17_ud_eval.py:99
↓ 2 callersFunctionload_conllu_file
(path)
src/utils/evaluation_script/conll17_ud_eval.py:451
↓ 2 callersFunctionmain
(args)
src/main.py:872
↓ 2 callersMethodsave_model
(self, path)
src/discrete_tag.py:425
↓ 2 callersFunctionspans_score
(gold_spans, system_spans)
src/utils/evaluation_script/conll17_ud_eval.py:271
↓ 2 callersMethodtag2embeddings
(self, tags)
src/discrete_tag.py:197
↓ 2 callersMethodtrain_batch
(self, corpus)
src/baselines.py:301
↓ 2 callersFunctiontrain_token_loader
(train_data_path, data_loader, embed_loader, dim=1)
src/others.py:71
↓ 1 callersMethod__init__
(self, options, word_dict)
src/discrete_tag.py:112
↓ 1 callersMethod__init__
(self, options, word_dict)
src/gaussian_tag.py:86
↓ 1 callersMethod_get_mask_for_eval
Dependency evaluation excludes words are punctuation. Here, we create a new mask to exclude word indices which have a "punctu
src/allen_parser.py:613
↓ 1 callersMethod_getattr_
(obj, key)
src/glo.py:53
↓ 1 callersMethod_greedy_decode
Decodes the head and head tag predictions by decoding the unlabeled arcs independently for each word and then again, predicting the h
src/allen_parser.py:402
↓ 1 callersMethod_mst_decode
Decodes the head and head tag predictions using the Edmonds' Algorithm for finding minimum spanning trees on directed graphs. Nodes i
src/allen_parser.py:458
↓ 1 callersMethod_run_mst_decoding
(batch_energy: torch.Tensor, lengths: torch.Tensor)
src/allen_parser.py:527
↓ 1 callersMethod_setattr_
(obj, key, val)
src/glo.py:45
↓ 1 callersMethod_test_exception
(self, gold, system)
src/utils/evaluation_script/conll17_ud_eval.py:526
↓ 1 callersFunctionalign_words
(gold_words, system_words)
src/utils/evaluation_script/conll17_ud_eval.py:356
↓ 1 callersFunctioncompute_lcs
(gold_words, system_words, gi, si, gs, ss)
src/utils/evaluation_script/conll17_ud_eval.py:346
↓ 1 callersMethodcompute_y_t_batch
this is a variational bound. q(y|t) namely the decoder. This returns a log-probability, total_error_number, and t
src/baselines.py:217
↓ 1 callersMethodcompute_y_t_batch
this is a variational bound. q(y|t) namely the decoder. This returns a log-probability, total_error_number, and t
src/baselines.py:385
↓ 1 callersMethoddecode
(self, output_dict: Dict[str, torch.Tensor])
src/allen_parser.py:306
↓ 1 callersFunctionevaluate_wrapper
(args)
src/utils/evaluation_script/conll17_ud_eval.py:455
↓ 1 callersMethodfile_reader
(self, path)
src/conllu_handler.py:451
↓ 1 callersMethodfill_parents
(self)
src/utils/evaluation_script/conll17_ud_eval.py:256
↓ 1 callersFunctionfind_multiword_span
(gold_words, system_words, gi, si)
src/utils/evaluation_script/conll17_ud_eval.py:319
↓ 1 callersFunctionfine_parse
(args)
src/main.py:126
↓ 1 callersMethodforward_sent_batch
:param sent: the input sentence in string :param elmo_embeds: the elmo look up table. :param index: the index of the sentenc
src/discrete_tag.py:55
↓ 1 callersMethodforward_sent_batch
(self, sent, embeds)
src/gaussian_tag.py:58
↓ 1 callersMethodget_dict
(self, train_data)
src/conllu_handler.py:277
↓ 1 callersMethodget_dict
(self, train_data)
src/conllu_handler.py:910
↓ 1 callersMethodget_sample_from_param_batch
(self, mean, cov, sample_size)
src/gaussian_tag.py:67
↓ 1 callersMethodget_tree
(self, train_data)
src/conllu_handler.py:241
↓ 1 callersMethodget_tree
(self, train_data)
src/conllu_handler.py:874
↓ 1 callersFunctioniden_parse
(args)
src/main.py:295
next →1–100 of 199, ranked by callers