OpenNMT-kpg-release icon indicating copy to clipboard operation
OpenNMT-kpg-release copied to clipboard

AttributeError: module 'torchtext.data' has no attribute 'Iterator'

Open bahar-abbs opened this issue 2 years ago • 3 comments

i use pytorch 1.11 and therefore torchtext 0.12 in this new version of torchtext, torchtext.data.Iterator dose not exist so i don,t know what i have to do to run the code: CUDA_VISIBLE_DEVICES=0 python onmt/keyphrase/kpg_example_hfdatasets.py note that i m almost beginner in python

bahar-abbs avatar Jun 02 '22 04:06 bahar-abbs

i'm really confused with your code. could you tell me, if i want to extract keyphrases from inspect data which code i have to run?

bahar-abbs avatar Jun 03 '22 06:06 bahar-abbs

another question: :)) i want to use your Bart_wikiKp on my project could you give me some explains about the dataset Wiki_kp which you used for finetuning bart

bahar-abbs avatar Jun 05 '22 15:06 bahar-abbs

Just realized , my issue just created is related to this

ahadda5 avatar Jun 11 '22 15:06 ahadda5

@bahar-abbs Please check out this repo for processing wiki data (note: specify --dump_type phrase --json).

memray avatar Oct 27 '22 18:10 memray