Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HadoopIt/rnn-nlu
/ functions
Functions
31 in github.com/HadoopIt/rnn-nlu
⨍
Functions
31
◇
Types & classes
1
↓ 9 callers
Function
data_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 callers
Function
read_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 callers
Function
attention
Put attention masks on hidden using hidden_features and query.
seq_labeling.py:88
↓ 2 callers
Function
basic_tokenizer
Very basic tokenizer: split the sentence into a list of tokens.
data_utils.py:39
↓ 2 callers
Method
classification_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 callers
Function
create_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 callers
Method
joint_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 callers
Function
run_valid_test
(data_set, mode)
run_multi-task_rnn.py:341
↓ 2 callers
Method
tagging_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 callers
Function
_step
(time, sequence_length, min_sequence_length, max_sequence_length, zero_logit, generate_logit)
seq_labeling.py:26
↓ 1 callers
Function
attention
Put attention masks on hidden using hidden_features and query.
seq_classification.py:57
↓ 1 callers
Function
attention_RNN
(encoder_outputs, encoder_state, num_decoder_symbols, s
seq_labeling.py:48
↓ 1 callers
Function
attention_single_output_decoder
(initial_state, attention_states, out
seq_classification.py:19
↓ 1 callers
Function
conlleval
INPUT: p :: predictions g :: groundtruth w :: corresponding words OUTPUT: filename :: name of the file where the predictions
run_multi-task_rnn.py:84
↓ 1 callers
Function
create_label_vocab
(vocabulary_path, data_path)
data_utils.py:188
↓ 1 callers
Function
create_model
Create model and initialize or load parameters in session.
run_multi-task_rnn.py:179
↓ 1 callers
Method
generate_rnn_output
Generate RNN state outputs with word embeddings as inputs
multi_task_model.py:157
↓ 1 callers
Method
get_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 callers
Method
get_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 callers
Function
get_perf
run conlleval.pl perl script to obtain precision/recall and F1 score
run_multi-task_rnn.py:110
↓ 1 callers
Function
initialize_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 callers
Function
sentence_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 callers
Function
train
()
run_multi-task_rnn.py:227
Method
__init__
(self, source_vocab_size, tag_vocab_size, label_vocab_size,
multi_task_model.py:37
Function
copy_through
()
seq_labeling.py:36
Method
create_cell
()
multi_task_model.py:69
Function
generate_sequence_output
(num_encoder_symbols, encoder_outputs, encoder_stat
seq_labeling.py:183
Function
generate_single_output
(encoder_state, attention_states, sequence_length, targets, num_classes, buckets,
seq_classification.py:104
Function
main
(_)
run_multi-task_rnn.py:443
Function
naive_tokenizer
Naive tokenizer: split the sentence by space into a list of tokens.
data_utils.py:46
Function
prepare_multi_task_data
(data_dir, in_vocab_size, out_vocab_size)
data_utils.py:205