memray / OpenNMT-kpg-release

Keyphrase Generation
MIT License
217 stars 34 forks source link

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

Closed bahar-abbs closed 2 years ago

bahar-abbs commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

ahadda5 commented 2 years ago

Just realized , my issue just created is related to this

memray commented 2 years ago

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