Texar: A Modularized, Versatile, and Extensible Toolkit for Text Generation
Table 4: Text style transfer on the Yelp data (Shen et al., 2017). The first row is the original open-source implementation by the authors of (Shen et al., 2017). The subsequent two rows are Texar implementations of the two work. Texar implementations have limited the maximum length of each line to 80 chars.
['[BOLD] Models', '[BOLD] Accuracy', '[BOLD] BLEU', '[BOLD] Lines of Model Code']
We use Texar to implement the models from both Following previous setting, we use a pre-trained sentiment classifier to evaluate the transferred style accuracy. For evaluating how well the generated sentence preserves the original content, we measure the BLEU score between the generated sentence and the original one (the higher the better) Implementations on Texar use fewer lines of code for the composite model construction.