Would you mind sharing your final code? I currently also looking into CNN (V)AE for text, and kind of struggling, i.e., I’m trying to reproduce the work of a paper but seem to get nowhere. Much appreciated!