import datetime
from embedding.wordebd import WORDEBD

from model.modelG import ModelG
from model.modelD import ModelD

def get_embedding(vocab, args):
    print("{}, Building embedding".format(
        datetime.datetime.now()), flush=True)

    ebd = WORDEBD(vocab, args.finetune_ebd)

    modelG = ModelG(ebd, args)
    modelD = ModelD(ebd, args)

    print("{}, Building embedding".format(
        datetime.datetime.now()), flush=True)

    if args.cuda != -1:
        modelG = modelG.cuda(args.cuda)
        modelD = modelD.cuda(args.cuda)
        return modelG, modelD
    else:
        return modelG, modelD
ddabaff7494a62ed241d1f70e18f4c78f4117110
<mask token>

<mask token>


def get_embedding(vocab, args):
    print('{}, Building embedding'.format(datetime.datetime.now()), flush=True)
    ebd = WORDEBD(vocab, args.finetune_ebd)
    modelG = ModelG(ebd, args)
    modelD = ModelD(ebd, args)
    print('{}, Building embedding'.format(datetime.datetime.now()), flush=True)
    if args.cuda != -1:
        modelG = modelG.cuda(args.cuda)
        modelD = modelD.cuda(args.cuda)
        return modelG, modelD
    else:
        return modelG, modelD

import datetime
from embedding.wordebd import WORDEBD
from model.modelG import ModelG
from model.modelD import ModelD


def get_embedding(vocab, args):
    print('{}, Building embedding'.format(datetime.datetime.now()), flush=True)
    ebd = WORDEBD(vocab, args.finetune_ebd)
    modelG = ModelG(ebd, args)
    modelD = ModelD(ebd, args)
    print('{}, Building embedding'.format(datetime.datetime.now()), flush=True)
    if args.cuda != -1:
        modelG = modelG.cuda(args.cuda)
        modelD = modelD.cuda(args.cuda)
        return modelG, modelD
    else:
        return modelG, modelD

import datetime
from embedding.wordebd import WORDEBD

from model.modelG import ModelG
from model.modelD import ModelD

def get_embedding(vocab, args):
    print("{}, Building embedding".format(
        datetime.datetime.now()), flush=True)

    ebd = WORDEBD(vocab, args.finetune_ebd)

    modelG = ModelG(ebd, args)
    modelD = ModelD(ebd, args)

    print("{}, Building embedding".format(
        datetime.datetime.now()), flush=True)

    if args.cuda != -1:
        modelG = modelG.cuda(args.cuda)
        modelD = modelD.cuda(args.cuda)
        return modelG, modelD
    else:
        return modelG, modelD