Skip to content

Instantly share code, notes, and snippets.

@hamletbatista
Created April 2, 2020 04:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save hamletbatista/b523424bb854372288bb2de325291a13 to your computer and use it in GitHub Desktop.
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