def __init__(self, vocab_en, emb_en, vocab_zh, emb_zh):
    super(CNNEncoder, self).__init__()
    self.encoder_en = EncoderCNN(vocab_en, emb_en, dimWE, dimC, 0)
    self.encoder_zh = EncoderCNN(vocab_zh, emb_zh, dimWE, dimC, 1)
def __init__(self, vocab_en, emb_en, vocab_zh, emb_zh):
    super(CNNEncoder, self).__init__()
    self.encoder_en = EncoderCNN(vocab_en, emb_en, dimWE, dimC, 0)
    self.encoder_zh = EncoderCNN(vocab_zh, emb_zh, dimWE, dimC, 1)