#NEWLINE# def print_description( intent ) : #NEWLINE# #INDENT# print ( '<> Enter data for <{intent}> OR Press enter with empty string to move onto next intent' . format ( intent = intent [ 'intent' ] ) ) #NEWLINE# print ( "<> Enter '<' to delete last training utterance" ) #NEWLINE# print ( '<> Sample utterance to remind you of the format:' ) #NEWLINE# print ( '>> what is the recipe for {ravioli|Food} ?' ) #NEWLINE# if ( len ( intent [ 'slots' ] ) > 0 ) : #NEWLINE# #INDENT# print ( '<> Available slots for this intent' ) #NEWLINE# for slot in intent [ 'slots' ] : #NEWLINE# #INDENT# print ( ' - - ' , slot [ 'name' ] , '<TYPE: {}>' . format ( intent [ 'type' ] ) )