MCPcopy Create free account

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

Functions199 in github.com/XiangLi1999/syntactic-VIB

↓ 1 callersFunctionload_deprel_weights
(weights_file)
src/utils/evaluation_script/conll17_ud_eval.py:433
↓ 1 callersMethodload_init_elmo
(self, lang = 'en')
src/conllu_handler.py:427
↓ 1 callersMethodload_model
(self, path)
src/discrete_tag.py:430
↓ 1 callersFunctionmain
()
src/utils/evaluation_script/conll17_ud_eval.py:465
↓ 1 callersFunctionpos_parse
(args)
src/main.py:638
↓ 1 callersMethodpre_process_data_verbo
(self, path)
src/conllu_handler.py:82
↓ 1 callersMethodpre_process_data_verbo
(self, path)
src/conllu_handler.py:720
↓ 1 callersFunctionprocess_word
(word)
src/utils/evaluation_script/conll17_ud_eval.py:152
↓ 1 callersMethodsave_model
(self, path)
src/baselines.py:800
↓ 1 callersMethodtrain_batch
(self, corpus, sent_per_epoch, elmo_embeds, non_context_embeds, delta_temp=0.01 , tag=
src/discrete_tag.py:339
↓ 1 callersMethodtrain_discrete
(self, word_lst, pos_lst, elmo_train)
src/baselines.py:614
FunctionSVM_classifier_verb
Train set evaluation
src/experiment_helper.py:555
FunctionSVM_classifier_verb_fore
Train set evaluation
src/experiment_helper.py:660
Method__getattr__
(self, key)
src/glo.py:67
Method__init__
(self, dict=None)
src/glo.py:58
Method__init__
(self, options, tag_dim, tag_feedforward: FeedForward = Non
src/allen_parser.py:81
Method__init__
(self, option, bos_tag=True, path=None)
src/conllu_handler.py:21
Method__init__
(self, dir_name, embedding_source, device=None)
src/conllu_handler.py:368
Method__init__
(self, embedding_source, path=None, data_loader = None, num_sent = None, device=None, requires_grad=False)
src/conllu_handler.py:416
Method__init__
(self, option, bos_tag=True, path=None)
src/conllu_handler.py:607
Method__init__
(self, options, word_dict, type_=False)
src/discrete_tag.py:28
Method__init__
(self, options, word_dict, type_=False)
src/gaussian_tag.py:15
Method__init__
(self, options)
src/baselines.py:38
Method__init__
(self, options)
src/baselines.py:366
Method__init__
(self, word_lst, pos_dict, model, embed_loader, options)
src/baselines.py:539
Method__init__
(self, stem_dict, model, options)
src/baselines.py:815
Method__init__
(self)
src/utils/evaluation_script/conll17_ud_eval.py:102
Method__init__
(self, start, end)
src/utils/evaluation_script/conll17_ud_eval.py:113
Method__init__
(self, span, columns, is_multiword)
src/utils/evaluation_script/conll17_ud_eval.py:119
Method__init__
(self, gold_total, system_total, correct, aligned_total=None)
src/utils/evaluation_script/conll17_ud_eval.py:236
Method__init__
(self, gold_word, system_word)
src/utils/evaluation_script/conll17_ud_eval.py:242
Method__init__
(self, gold_words, system_words)
src/utils/evaluation_script/conll17_ud_eval.py:248
Method__str__
(self)
src/glo.py:70
Methodanneal_clustering
This function aims to do annealing and gradually do more compression, by tuning the gamma and beta to be larger. So, this is equivale
src/discrete_tag.py:250
Methodanneal_clustering
This function aims to do annealing and gradually do more compression, by tuning the gamma and beta to be larger. So, this is equivale
src/gaussian_tag.py:227
Functioncluster_sub_func
(lst_tag, lst_cand)
src/others.py:117
Functiondecorated
(*args, **kwargs)
src/glo.py:33
Functiondecorator
(func)
src/glo.py:31
Functiondev_token_loader2
(dev_path, dim=1)
src/others.py:100
Methodeval_dev_continuous
(self, word_lst, pos_lst, elmo_train)
src/baselines.py:1005
Methodeval_dev_discrete
(self, word_lst, pos_lst, elmo_train)
src/baselines.py:978
Functioneval_pos
(model, data_loader, args)
src/experiment_helper.py:93
Functioneval_verbs
(model, data_loader, args, usage='verb')
src/experiment_helper.py:359
Functionexperiment
(before=[], after=[])
src/glo.py:30
Methodfewshot_filtering
In this function, we will pick k = 50, number for each POS tags to train. :param word_lst: :param pos_lst: :return:
src/baselines.py:714
Methodfewshot_filtering_proportional
In this function, we will pick k = 500 and see the result for thr further results. :param word_lst: :param pos_lst: :
src/baselines.py:672
Methodforward_linear
(self, sent_compress)
src/baselines.py:606
Methodforward_linear
(self, sent_compress)
src/baselines.py:882
Methodforward_matrix
(self, sent_compress)
src/baselines.py:610
Methodforward_matrix
(self, sent_compress)
src/baselines.py:886
Methodforward_nonlinear
This function batch processes the sentence together. :param sent: the compressed version of the sentence. :return:
src/baselines.py:595
Methodforward_nonlinear
This function batch processes the sentence together. :param sent: the compressed version of the sentence. :return:
src/baselines.py:872
Methodgen_word_embed
return a Numpy matrix.
src/conllu_handler.py:459
Methodget_elmo_embeds
(self, sent, index=None)
src/discrete_tag.py:77
Methodget_metrics
(self, reset: bool = False)
src/allen_parser.py:640
Methodget_model_output_for_words
(self, model, word_lst, embed_loader)
src/baselines.py:577
Methodget_part_elmo
(self, sentences)
src/conllu_handler.py:476
Functionget_tsne_plot
(model, type_embeds, token_embeds, embed_loader, word_pos_dict, x_lst, pos_lst, exp_mode = '', out_path='')
src/experiment_helper.py:775
Functionget_word_pos_dict
(word_lst, pos_lst)
src/baselines.py:1039
Functionget_word_pos_dict_thre
(word_lst, pos_lst, threshold)
src/baselines.py:1053
Functionget_word_pos_dict_thre_1
(word_lst, pos_lst, threshold)
src/baselines.py:1084
Methodhelper
(self, )
src/conllu_handler.py:582
Methodload_dev
(self, dataset_dev_path)
src/conllu_handler.py:636
Methodload_dev_verbo
(self, dataset_dev_path)
src/conllu_handler.py:697
Methodload_dev_with_tags
(self, dataset_dev_path)
src/conllu_handler.py:704
Methodload_model
(self, path)
src/gaussian_tag.py:404
Methodload_model
(self, path)
src/baselines.py:173
Methodload_model
(self, path)
src/baselines.py:529
Methodload_model
(self, path)
src/baselines.py:805
Methodload_model
(self, path)
src/baselines.py:1032
Functionnoun_number_process
(x_lst, tag_lst, feature_lst)
src/experiment_helper.py:496
Methodparse_dev_batch
(self, corpus, elmo_embeds, non_context_embeds, out_path)
src/gaussian_tag.py:246
Methodparse_dev_batch
(self, corpus, elmo_embeds, out_path)
src/baselines.py:416
Methodprepare_elmo
(self, words, elmo_train, ind )
src/baselines.py:934
Methodprepare_mean
(self, words, elmo_train, ind)
src/baselines.py:924
Methodprepare_sample
(self, x, type_embeds, index)
src/baselines.py:928
Methodprint_conllu
(self, predicted, start, end, path=None)
src/conllu_handler.py:215
Methodprint_conllu
(self, predicted, start, end, path=None)
src/conllu_handler.py:849
Methodprint_sentence_length_stats
(self)
src/conllu_handler.py:360
Methodprint_sentence_length_stats
(self)
src/conllu_handler.py:994
Functionreconstruct_stem
(model, data_loader, args)
src/experiment_helper.py:208
Functionreconstruct_stem_fore
the foreign version of the stem reconstruction training. :param model: :param data_loader: :param args: :return:
src/experiment_helper.py:269
Functionrobost_tsne
(mean_lst, visual_out_path, tag_lst, word_lst=None, dim=2)
src/visual.py:16
Methodsave_model
(self, path)
src/gaussian_tag.py:399
Methodsave_model
(self, path)
src/baselines.py:164
Methodsave_model
(self, path)
src/baselines.py:525
Methodsave_model
(self, path)
src/baselines.py:1028
Methodtest_alignment
(self)
src/utils/evaluation_script/conll17_ud_eval.py:549
Methodtest_equal
(self)
src/utils/evaluation_script/conll17_ud_eval.py:539
Methodtest_equal_with_multiword
(self)
src/utils/evaluation_script/conll17_ud_eval.py:543
Methodtest_exception
(self)
src/utils/evaluation_script/conll17_ud_eval.py:536
Methodto_dict
(self)
src/glo.py:73
Methodtrain_batch
(self, corpus, sent_per_epoch, elmo_embeds, non_context_embeds, delta_temp=0.01 , tag=
src/gaussian_tag.py:315
Methodtrain_batch
(self, corpus, sent_per_epoch, elmo_embeds)
src/baselines.py:468
Methodtrain_continuous
:param word_lst: a list of tokens in a sentence :param pos_lst: a list of target stem tensor that's in the format of LongTensor
src/baselines.py:938
Methodtrain_discrete
(self, word_lst, pos_lst, elmo_train, sent_per_epoch=200)
src/baselines.py:890
Functiontrain_token_loader2
(train_data_path, dim=1)
src/others.py:52
Functionverb_tense_process
(x_lst, tag_lst, feature_lst)
src/experiment_helper.py:477
Functionweighted_las
(word)
src/utils/evaluation_script/conll17_ud_eval.py:427
← previous101–199 of 199, ranked by callers