{'fraction_non_alphanumeric': 0.01662971175166297, 'fraction_numerical': 0.0022172949002217295, 'mean_word_length': 5.227586206896552, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Generating Functional Responses Based on Interpretable Variable Space

How to generate responses with different sentence functions is the most challenging task in the area of dialogue systems. Conventional Sequence-to-Sequence (Seq2seq) model cannot generate sentences with different functions based on the same context by using beam search. In this paper, we design a new model to solve this problem. Our model combines an Autoencoder (AE) with a Seq2seq model by sharing the same decoder. It encodes posts and responses into different space variables and restructures the responses respectively. Besides, we introduce a latent variable to extract sentence function and Triplet loss to make variable space interpretable. The results show that our model has the ability to generate different sentences based on the target functional factor and reach a high degree of fluency and diversity in responses.