TextAugmentation-GPT2
TextAugmentation-GPT2 copied to clipboard
Fine-tuned pre-trained GPT2 for custom topic specific text generation. Such system can be used for Text Augmentation.
NameError: name 'device' is not defined ?How can I solve it, thank you
--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) in 93 TOKENIZER, MODEL = load_models(MODEL_NAME) 94 ---> 95 generate(TOKENIZER, MODEL, SENTENCES, LABEL, DEVICE) in generate(tokenizer, model, sentences, label, device) 47 48 next_token_id...
请问作者方便把数据集发给我吗。麻烦啦
Thank you for your sharing.I've been studying your code. Now I want it use on multi-label,but I found your code and examples is on a single label. If I want...
I wanna predict sentences without calling generate function multiple times.