MCPcopy Create free account

hub / github.com/EagleW/PaperRobot / functions

Functions165 in github.com/EagleW/PaperRobot

Method__init__
(self, model, id2word, vocab_size)
New paper writing/memory_generator/predictor.py:42
Method__init__
(self, vocab_size, embedding, word_dim, sos_id, eos_id, unk_id, max_len=150, input_dropout_p=
New paper writing/memory_generator/Decoder.py:12
Method__init__
(self, token_id, hidden_state, cov_ref, cov_mem, log_prob, stopwords)
New paper writing/memory_generator/Decoder.py:353
Method__init__
(self, hop, h, d_model, dropout_p)
New paper writing/memory_generator/utils.py:15
Method__init__
(self, language='en', norm=True)
New paper writing/pycocoevalcap/meteor/meteor.py:12
Method__init__
(self)
New paper writing/pycocoevalcap/rouge/rouge.py:38
Method__init__
singular instance
New paper writing/pycocoevalcap/bleu/bleu_scorer.py:99
Method__init__
(self, n=4)
New paper writing/pycocoevalcap/bleu/bleu.py:13
Method__init__
(self, test=None, refs=None, n=4, sigma=6.0)
New paper writing/pycocoevalcap/cider/cider.py:17
Method__init__
singular instance
New paper writing/pycocoevalcap/cider/cider_scorer.py:57
Method__len__
(self)
Existing paper reading/utils/data_loader.py:19
Method__len__
(self)
Existing paper reading/utils/data_loader.py:51
Method__len__
(self)
Existing paper reading/utils/data_loader.py:72
Method__repr__
(self)
Existing paper reading/model/graph_attention.py:45
Function_mask
(prev_generated_seq, device, eos_id)
New paper writing/loader/preprocessing.py:8
Functionadjust_sent_order
(l)
Existing paper reading/utils/utils.py:204
Functionaugment_with_pretrained
Augment the dictionary with words that have a pretrained embedding.
New paper writing/loader/loader.py:188
Methodcompute_score
(self, gts, res)
New paper writing/pycocoevalcap/meteor/meteor.py:27
Methodcompute_score
Computes Rouge-L score given a set of reference and candidate sentences for the dataset Invoked by evaluate_captions.py :p
New paper writing/pycocoevalcap/rouge/rouge.py:74
Methodcompute_score
Main function to compute CIDEr score :param hypo_for_image (dict) : dictionary with key <image> and value <tokenized hypothesis / ca
New paper writing/pycocoevalcap/cider/cider.py:23
Methodconvert
(self, data)
New paper writing/eval.py:19
Methodconvert
(self, data)
New paper writing/eval_final.py:20
Methodcopy
copy the refs.
New paper writing/pycocoevalcap/bleu/bleu_scorer.py:91
Methodcopy
copy the refs.
New paper writing/pycocoevalcap/cider/cider_scorer.py:50
Methodcounts2vec
Function maps counts of ngram to vector of tfidf weights. The function returns vec, an array of dictionary that store mapping
New paper writing/pycocoevalcap/cider/cider_scorer.py:106
Methodfilter_small_nodes
(self, threshold)
Existing paper reading/utils/utils.py:40
Methodforward
(self, nodes, adj, pos, shifted_pos, h_sents, h_order, h_lengths, t_sents, t_order, t_lengths)
Existing paper reading/model/GATA.py:17
Methodforward
(self, x, adj)
Existing paper reading/model/GAT.py:16
Methodforward
(self, sentence, orders, lengths, ent_emb)
Existing paper reading/model/TAT.py:20
Methodforward
(self, input, adj)
Existing paper reading/model/graph_attention.py:26
Methodforward
(self, source, input_lengths=None)
New paper writing/memory_generator/Encoder.py:15
Methodforward
(self, term)
New paper writing/memory_generator/Encoder.py:39
Methodforward
(self, batch_s, batch_o_s, source_len, max_source_oov, batch_term, batch_o_term, batch_t=None,
New paper writing/memory_generator/seq2seq.py:12
Methodforward
(self, *args, **kwargs)
New paper writing/memory_generator/baseRNN.py:20
Methodforward
(self, max_source_oov=0, targets=None, targets_id=None, sources_ids=None, enc_mask=None, enco
New paper writing/memory_generator/Decoder.py:98
Methodforward
(self, query, src, src_mask, cov_mem=None)
New paper writing/memory_generator/utils.py:27
Functionget_logger
(name, level=logging.INFO, handler=sys.stdout, filename=None, formatter='%(asctime)s %(name)s %
New paper writing/loader/logger.py:5
Methodget_num_ent
(self)
Existing paper reading/utils/data_loader.py:35
Methodget_triple_dict_rev
(self)
Existing paper reading/utils/data_loader.py:41
Methodget_triples
(self)
Existing paper reading/utils/data_loader.py:32
Methodload_file
(self, fn, delimiter, threshold)
Existing paper reading/utils/utils.py:17
Functionload_file_with_pmid
(path)
New paper writing/loader/loader.py:39
Functionload_file_with_pmid_no_filter
(path)
New paper writing/loader/loader.py:71
Functionload_file_with_pred
(path_title)
New paper writing/loader/loader.py:229
Functionload_files
(path)
New paper writing/loader/loader.py:11
Functionload_kg_embeddings
(f)
Existing paper reading/utils/utils.py:97
Functionload_pretrained
(word_emb, id2word, pre_emb)
New paper writing/loader/loader.py:130
Functionload_test_data
(path, t_dataset)
New paper writing/loader/loader.py:88
Functionload_test_new_data
(path)
New paper writing/loader/loader.py:112
Functionload_triples
(kg_f)
Existing paper reading/utils/utils.py:69
Methodmethod
(self)
New paper writing/pycocoevalcap/meteor/meteor.py:24
Methodmethod
(self)
New paper writing/pycocoevalcap/rouge/rouge.py:99
Methodmethod
(self)
New paper writing/pycocoevalcap/bleu/bleu.py:41
Methodmethod
(self)
New paper writing/pycocoevalcap/cider/cider.py:49
Methodnode_info
(self, s)
Existing paper reading/utils/utils.py:49
Methodpredict
(self, batch_s, batch_o_s, source_len, max_source_oov, batch_term, batch_o_term, list_oovs)
New paper writing/memory_generator/predictor.py:48
Methodrecompute_score
(self, option=None, verbose=0)
New paper writing/pycocoevalcap/bleu/bleu_scorer.py:193
Methodreflen
(self, option=None)
New paper writing/pycocoevalcap/bleu/bleu_scorer.py:132
Methodrescore
replace test(s) with new test(s), and returns the new score.
New paper writing/pycocoevalcap/bleu/bleu_scorer.py:151
Methodscore_ratio_str
(self, option=None)
New paper writing/pycocoevalcap/bleu/bleu_scorer.py:129
Methodsim
Compute the cosine similarity of two vectors. :param vec_hyp: array of dictionary for vector corresponding to hypothesis
New paper writing/pycocoevalcap/cider/cider_scorer.py:132
Methodsingle_reflen
(self, option="average")
New paper writing/pycocoevalcap/bleu/bleu_scorer.py:177
Methodsize
(self)
New paper writing/pycocoevalcap/cider/cider_scorer.py:77
Methodtestlen
(self, option=None)
New paper writing/pycocoevalcap/bleu/bleu_scorer.py:136
Methodtriple2graph
(self)
Existing paper reading/utils/utils.py:55
← previous101–165 of 165, ranked by callers