Open sitcons opened 2 years ago
in my clone, which was a while ago, vect_path
is declared and never used any where in the code. anyway, "embeddings.pkl" is in data_path
which is defined here parser.add_argument('--data_path', type=str, default='un/split_paragraph_1', help='directory containing data')
you don't have this un/split_paragraph_1
directory if you just clone. you have to create it yourself and download the embedding per @adjidieng instruction.
I have made the code to work (using different data though), if you want to see an example: https://github.com/quynhneo/detm-arxiv
That looks like an exciting use of the DETM. Thank you for sharing!
On Sat, Apr 23, 2022 at 11:24 AM Quynh M. Nguyen @.***> wrote:
in my clone, which was a while ago, vect_path is declared and never used any where in the code. anyway, "embeddings.pkl" is in data_path which is defined here parser.add_argument('--data_path', type=str, default='un/split_paragraph_1', help='directory containing data') you don't have this un/split_paragraph_1 directory if you just clone. you have to create it yourself and download the embedding per @adjidieng https://github.com/adjidieng instruction.
I have made the code to work with a bit more instruction here, if you want to get it going .https://github.com/quynhneo/detm-arxiv
— Reply to this email directly, view it on GitHub https://github.com/adjidieng/DETM/issues/16#issuecomment-1107520489, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACHAL2OYHXZKPBGDXWSCZH3VGQI35ANCNFSM5UCSZEAA . You are receiving this because you were mentioned.Message ID: @.***>
Hi,
Would you be able to point me in the direction where I can get the file "embeddings.pkl" mentioned in the main
print('Getting embeddings ...') emb_path = args.emb_path vect_path = os.path.join(args.data_path.split('/')[0], 'embeddings.pkl') vectors = {}
Many thanks.