MCPcopy Create free account

hub / github.com/HadoopIt/rnn-nlu / functions

Functions31 in github.com/HadoopIt/rnn-nlu

↓ 9 callersFunctiondata_to_token_ids
Tokenize data file and turn into token-ids using given vocabulary file. This function loads data line-by-line from data_path, calls the above sen
data_utils.py:152
↓ 3 callersFunctionread_data
Read data from source and target files and put into buckets. Args: source_path: path to the files with token-ids for the word sequence. tar
run_multi-task_rnn.py:134
↓ 2 callersFunctionattention
Put attention masks on hidden using hidden_features and query.
seq_labeling.py:88
↓ 2 callersFunctionbasic_tokenizer
Very basic tokenizer: split the sentence into a list of tokens.
data_utils.py:39
↓ 2 callersMethodclassification_step
Run a step of the intent classification model feeding the given inputs. Args: session: tensorflow session to use. encoder_inputs: lis
multi_task_model.py:327
↓ 2 callersFunctioncreate_vocabulary
Create vocabulary file (if it does not exist yet) from data file. Data file is assumed to contain one sentence per line. Each sentence is tokeniz
data_utils.py:51
↓ 2 callersMethodjoint_step
Run a step of the joint model feeding the given inputs. Args: session: tensorflow session to use. encoder_inputs: list of numpy int v
multi_task_model.py:206
↓ 2 callersFunctionrun_valid_test
(data_set, mode)
run_multi-task_rnn.py:341
↓ 2 callersMethodtagging_step
Run a step of the tagging model feeding the given inputs. Args: session: tensorflow session to use. encoder_inputs: list of numpy int
multi_task_model.py:271
↓ 1 callersFunction_step
(time, sequence_length, min_sequence_length, max_sequence_length, zero_logit, generate_logit)
seq_labeling.py:26
↓ 1 callersFunctionattention
Put attention masks on hidden using hidden_features and query.
seq_classification.py:57
↓ 1 callersFunctionattention_RNN
(encoder_outputs, encoder_state, num_decoder_symbols, s
seq_labeling.py:48
↓ 1 callersFunctionattention_single_output_decoder
(initial_state, attention_states, out
seq_classification.py:19
↓ 1 callersFunctionconlleval
INPUT: p :: predictions g :: groundtruth w :: corresponding words OUTPUT: filename :: name of the file where the predictions
run_multi-task_rnn.py:84
↓ 1 callersFunctioncreate_label_vocab
(vocabulary_path, data_path)
data_utils.py:188
↓ 1 callersFunctioncreate_model
Create model and initialize or load parameters in session.
run_multi-task_rnn.py:179
↓ 1 callersMethodgenerate_rnn_output
Generate RNN state outputs with word embeddings as inputs
multi_task_model.py:157
↓ 1 callersMethodget_batch
Get a random batch of data from the specified bucket, prepare for step. To feed data in step(..) it must be a list of batch-major vectors, while
multi_task_model.py:377
↓ 1 callersMethodget_one
Get a single sample data from the specified bucket, prepare for step. To feed data in step(..) it must be a list of batch-major vectors, while
multi_task_model.py:452
↓ 1 callersFunctionget_perf
run conlleval.pl perl script to obtain precision/recall and F1 score
run_multi-task_rnn.py:110
↓ 1 callersFunctioninitialize_vocab
Initialize vocabulary from file. We assume the vocabulary is stored one-item-per-line, so a file: dog cat will result in a vocabulary {"d
data_utils.py:94
↓ 1 callersFunctionsentence_to_token_ids
Convert a string to list of integers representing token-ids. For example, a sentence "I have a dog" may become tokenized into ["I", "have", "a",
data_utils.py:124
↓ 1 callersFunctiontrain
()
run_multi-task_rnn.py:227
Method__init__
(self, source_vocab_size, tag_vocab_size, label_vocab_size,
multi_task_model.py:37
Functioncopy_through
()
seq_labeling.py:36
Methodcreate_cell
()
multi_task_model.py:69
Functiongenerate_sequence_output
(num_encoder_symbols, encoder_outputs, encoder_stat
seq_labeling.py:183
Functiongenerate_single_output
(encoder_state, attention_states, sequence_length, targets, num_classes, buckets,
seq_classification.py:104
Functionmain
(_)
run_multi-task_rnn.py:443
Functionnaive_tokenizer
Naive tokenizer: split the sentence by space into a list of tokens.
data_utils.py:46
Functionprepare_multi_task_data
(data_dir, in_vocab_size, out_vocab_size)
data_utils.py:205