MCPcopy Create free account

hub / github.com/budzianowski/multiwoz / functions

Functions93 in github.com/budzianowski/multiwoz

↓ 35 callersFunctionnormalize
(text)
utils/nlp.py:36
↓ 4 callersMethod__init__
(self, method, hidden_size)
model/model.py:135
↓ 4 callersFunctioninit_gru
(gru, gain=1)
model/model.py:51
↓ 4 callersMethodoutput_index2word
(self, index)
model/model.py:552
↓ 4 callersMethodqueryResultVenues
(self, domain, turn, real_belief=False)
evaluate.py:116
↓ 3 callersMethodevaluateModel
Gathers statistics for the whole sets.
evaluate.py:533
↓ 3 callersFunctionget_slot_name
Get the slot name that is consistent with the schema file.
data/MultiWOZ_2.2/convert_to_multiwoz_format.py:25
↓ 3 callersFunctionwhatCellType
(input_size, hidden_size, cell_type, dropout_rate)
model/model.py:58
↓ 2 callersFunctioncreateDict
(word_freqs)
create_delex_data.py:240
↓ 2 callersMethodeval
(self, repeatPenalty, tokenReward, scoreTable, alpha=1.0)
model/model.py:34
↓ 2 callersFunctioninit_lstm
(cell, gain=1)
model/model.py:41
↓ 2 callersFunctioninsertSpace
(token, text)
utils/nlp.py:17
↓ 2 callersFunctionis_ascii
(s)
create_delex_data.py:31
↓ 2 callersMethodloadModel
(self, iter=0)
model/model.py:540
↓ 2 callersMethodpredict
(self, input_tensor, input_lengths, target_tensor, target_lengths, db_tensor, bs_tensor)
model/model.py:394
↓ 1 callersMethod_evaluateGeneratedDialogue
Evaluates the dialogue created by the model. First we load the user goal of the dialogue, then for each turn generated by the system w
evaluate.py:203
↓ 1 callersMethod_evaluateRealDialogue
Evaluation of the real dialogue. First we loads the user goal and then go through the dialogue history. Similar to evaluateGeneratedDi
evaluate.py:374
↓ 1 callersMethod_parseGoal
Parses user goal into dictionary format.
evaluate.py:170
↓ 1 callersFunctionaddBookingPointer
Add information about availability of the booking option.
create_delex_data.py:88
↓ 1 callersFunctionaddDBPointer
Create database pointer for all related domains.
create_delex_data.py:122
↓ 1 callersFunctionanalyze_dialogue
Cleaning procedure for all kinds of errors in text and annotation.
create_delex_data.py:183
↓ 1 callersFunctionasMinutes
(s)
utils/util.py:90
↓ 1 callersFunctionbuildDictionaries
Build dictionaries for both user and system sides. You can specify the size of the dictionary through DICT_SIZE variable.
create_delex_data.py:418
↓ 1 callersMethodbuild_model
(self)
model/model.py:315
↓ 1 callersMethodclipGradients
(self)
model/model.py:524
↓ 1 callersFunctioncreateDelexData
Main function of the script - loads delexical dictionary, goes through each dialogue and does: 1) data normalization 2) delexicalization
create_delex_data.py:277
↓ 1 callersFunctiondecode
(num=1)
test.py:96
↓ 1 callersMethoddecode
(self, target_tensor, decoder_hidden, encoder_outputs)
model/model.py:407
↓ 1 callersFunctiondecodeWrapper
()
test.py:159
↓ 1 callersFunctiondelexicaliseReferenceNumber
Based on the belief state, we can find reference number that during data gathering was created randomly.
create_delex_data.py:63
↓ 1 callersFunctiondivideData
Given test and validation sets, divide the data for three different sets
create_delex_data.py:344
↓ 1 callersFunctionfixDelex
Given system dialogue acts fix automatic delexicalization.
create_delex_data.py:35
↓ 1 callersFunctionformat_states
Correct the dialogue states in place.
data/MultiWOZ_2.2/convert_to_multiwoz_format.py:32
↓ 1 callersMethodforward
:param hidden: previous hidden state of the decoder, in shape (layers*directions,B,H) :param encoder_outputs:
model/model.py:144
↓ 1 callersMethodforward
Given the user sentence, user belief state and database pointer, encode the sentence, decide what policy vector construct and feed it
model/model.py:355
↓ 1 callersMethodgetCount
(self)
model/model.py:570
↓ 1 callersFunctionget_dial
Extract a dialogue from the file
create_delex_data.py:224
↓ 1 callersFunctionget_summary_bstate
Based on the mturk annotations we form multi-domain belief state
create_delex_data.py:133
↓ 1 callersMethodgreedy_decode
(self, decoder_hidden, encoder_outputs, target_tensor)
model/model.py:499
↓ 1 callersMethodinput_word2index
(self, index)
model/model.py:558
↓ 1 callersFunctionloadData
()
create_delex_data.py:264
↓ 1 callersFunctionloadDictionaries
()
train.py:149
↓ 1 callersFunctionloadModelAndData
(num)
test.py:57
↓ 1 callersFunctionmain
()
create_delex_data.py:445
↓ 1 callersMethodoutput_word2index
(self, index)
model/model.py:564
↓ 1 callersFunctionprepareSlotValuesIndependent
()
utils/delexicalize.py:19
↓ 1 callersMethodsaveModel
(self, iter)
model/model.py:528
↓ 1 callersMethodscore
(self, hypothesis, corpus, n=1)
evaluate.py:43
↓ 1 callersMethodscore
(self, hypothesis, corpus, n=1)
utils/nlp.py:127
↓ 1 callersMethodscore
(self, hidden, encoder_outputs)
model/model.py:160
↓ 1 callersMethodsetOptimizers
(self)
model/model.py:346
↓ 1 callersFunctiontrain
(print_loss_total,print_act_total, print_grad_total, input_tensor, target_tensor, bs_tensor, db_tensor, name=N
train.py:71
↓ 1 callersMethodtrain
(self, input_tensor, input_lengths, target_tensor, target_lengths, db_tensor, bs_tensor, dial_name=None)
model/model.py:331
↓ 1 callersFunctiontrainIters
(model, n_epochs=10, args=args)
train.py:92
↓ 1 callersFunctionunicode_to_utf8
(d)
utils/util.py:55
Method__init__
(self, data_name)
evaluate.py:158
Method__init__
(self)
utils/nlp.py:124
Method__init__
(self, detectfile)
utils/nlp.py:189
Method__init__
(self, hidden_size_pol, hidden_size, db_size, bs_size)
model/policy.py:6
Method__init__
(self, h, prevNode, wordid, logp, leng)
model/model.py:27
Method__init__
(self, input_size, embedding_size, hidden_size, cell_type, depth, dropout)
model/model.py:82
Method__init__
(self, embedding_size, hidden_size, output_size, cell_type, dropout_p=0.1, max_length=30)
model/model.py:170
Method__init__
(self, embedding_size, hidden_size, output_size, cell_type, dropout=0.1)
model/model.py:233
Method__init__
(self, args, input_lang_index2word, output_lang_index2word, input_lang_word2index, output_lang_word2index)
model/model.py:264
Method_get_prec_recall
(tp, fp, fn)
evaluate.py:25
Method_get_tp_fp_fn
(label_list, pred_list)
evaluate.py:32
Method_parse_entities
(self, tokens)
evaluate.py:526
Methodadd_example
(self, ref, hyp)
evaluate.py:18
Methodadd_example
(self, ref, hyp)
evaluate.py:166
Methodcuda_
(self, var)
model/model.py:312
Functiondelexicalise
(utt, dictionary)
utils/delexicalize.py:124
FunctiondelexicaliseDomain
(utt, dictionary, domain)
utils/delexicalize.py:132
Methodforward
(self, encodings, db_tensor, bs_tensor, act_tensor=None)
model/policy.py:15
Methodforward
forward procedure. **No need for inputs to be sorted** :param input_seqs: Variable of [T,B] :param hidden: :param inp
model/model.py:97
Methodforward
(self, input, hidden, encoder_outputs)
model/model.py:198
Methodforward
(self, input, hidden, not_used)
model/model.py:248
Methodget_report
(self, *args, **kwargs)
evaluate.py:21
Methodinitialize
(self)
evaluate.py:15
Methodinput_index2word
(self, index)
model/model.py:546
FunctionloadDialogue
(model, val_file, input_tensor, target_tensor, bs_tensor, db_tensor)
utils/util.py:37
Functionload_config
(args)
test.py:45
Functionload_config
(basename)
utils/util.py:68
Functionload_dict
(filename)
utils/util.py:59
Functionmain
(argv)
data/MultiWOZ_2.2/convert_to_multiwoz_format.py:66
FunctiononeHotVector
Return number of available entities for particular domain.
utils/dbPointer.py:18
FunctionpadSequence
(tensor)
utils/util.py:21
MethodprintGrad
(self)
model/model.py:575
FunctionqueryResult
Returns the list of entities for a given domain based on the annotation of the belief state
utils/dbPointer.py:52
FunctionqueryResultVenues
(domain, turn, real_belief=False)
utils/dbPointer.py:94
MethodscoreBLEU
(self, parallel_corpus)
utils/nlp.py:192
Functionsentence_bleu_4
(hyp, refs, weights=[0.25, 0.25, 0.25, 0.25])
utils/nlp.py:196
Functionstr2bool
(v)
utils/util.py:81
FunctiontimeSince
(since, percent)
utils/util.py:96