You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i run:
python build_all_data.py -data_dir ../../data/kbqa_data/ -kb_path ../../data/recipe_kg/recipe_kg.json -out_dir ../data/kbqa
Using pre-built vocabs stored in ../data/kbqa
Traceback (most recent call last):
File "build_all_data.py", line 63, in
train_vec = build_all_data(train_data, kb, entity2id, entityType2id, relation2id, vocab2id, preferred_ans_type=preferred_ans_type, question_field=question_field, kg_augmentation=kg_augmentation)
File "/home/haobo/mnt/academic/nutriology/code/PFoodReq-master/BAMnet/src/core/build_data/foodkg/build_data.py", line 277, in build_all_data
query, tmp_topic_men = delex_query_topic_ent(query, topic_key_name, each['entities'])
File "/home/haobo/mnt/academic/nutriology/code/PFoodReq-master/BAMnet/src/core/build_data/foodkg/build_data.py", line 145, in delex_query_topic_ent
ret = process.extract(topic_ent.replace('_', ' '), set(list(zip(*ent_types))[0]), scorer=fuzz.token_sort_ratio)
File "src/cpp_process.pyx", line 586, in cpp_process.extract
File "src/cpp_process.pyx", line 447, in cpp_process.extract_list
TypeError: 'set' object is not subscriptable
The text was updated successfully, but these errors were encountered:
when i run:
python build_all_data.py -data_dir ../../data/kbqa_data/ -kb_path ../../data/recipe_kg/recipe_kg.json -out_dir ../data/kbqa
Using pre-built vocabs stored in ../data/kbqa
Traceback (most recent call last):
File "build_all_data.py", line 63, in
train_vec = build_all_data(train_data, kb, entity2id, entityType2id, relation2id, vocab2id, preferred_ans_type=preferred_ans_type, question_field=question_field, kg_augmentation=kg_augmentation)
File "/home/haobo/mnt/academic/nutriology/code/PFoodReq-master/BAMnet/src/core/build_data/foodkg/build_data.py", line 277, in build_all_data
query, tmp_topic_men = delex_query_topic_ent(query, topic_key_name, each['entities'])
File "/home/haobo/mnt/academic/nutriology/code/PFoodReq-master/BAMnet/src/core/build_data/foodkg/build_data.py", line 145, in delex_query_topic_ent
ret = process.extract(topic_ent.replace('_', ' '), set(list(zip(*ent_types))[0]), scorer=fuzz.token_sort_ratio)
File "src/cpp_process.pyx", line 586, in cpp_process.extract
File "src/cpp_process.pyx", line 447, in cpp_process.extract_list
TypeError: 'set' object is not subscriptable
The text was updated successfully, but these errors were encountered: