Created
April 2, 2020 04:22
-
-
Save hamletbatista/b523424bb854372288bb2de325291a13 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template=""" | |
input_features: | |
- | |
name: tokens | |
type: text | |
level: word | |
encoder: rnn | |
cell_type: lstm | |
bidirectional: true | |
num_layers: 2 | |
reduce_output: null | |
preprocessing: | |
word_format: space | |
output_features: | |
- | |
name: intent | |
type: category | |
reduce_input: sum | |
num_fc_layers: 1 | |
fc_size: 64 | |
- | |
name: slots | |
type: sequence | |
decoder: tagger | |
""" | |
with open("model_definition.yaml", "w") as f: | |
f.write(template) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment