-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong results using checkpoints for Bart Program baseline #20
Comments
How is you training process? I recall there is a validation step while train. Are those statistical measures normal? When I am running Bart_Program I also had a accuracy problem (the acc is very low). It turns out to be Take a look of https://github.com/shijx12/KQAPro_Baselines/blob/master/utils/load_kb.py#L9: """
knowledge json format:
'concepts':
{
'id':
{
'name': '',
'instanceOf': ['<concept_id>'],
}
},
'entities': # exclude concepts
{
'id':
{
'name': '<entity_name>',
'instanceOf': ['<concept_id>'],
'attributes':
[
{
'key': '<key>',
'value':
{
'type': 'string'/'quantity'/'date'/'year'
'value': # float or int for quantity, int for year, 'yyyy/mm/dd' for date
'unit': # for quantity
},
'qualifiers':
{
'<qk>':
[
<qv>, # each qv is a dictionary like value, including keys type,value,unit
]
}
}
]
'relations':
[
{
'predicate': '<predicate>',
'object': '<object_id>', # NOTE: it may be a concept id
'direction': 'forward' or 'backward',
'qualifiers':
{
'<qk>':
[
<qv>, # each qv is a dictionary like value
]
}
}
]
}
}
""" Be sure your |
Hi @stellarkey, The This is a portion of that file (the file is too long to copy and paste, sorry for that ahah) I have not modified the file in any way. Can you share the right kb.json? Thank you for your support. Kind regards, |
@andreabac3 Sorry for the delay. I uploaded it to google drive. |
The newly updated version fixed the problem. Please check the new checkpoint file and the change log. |
Thank you for your help. Please can you also update the bart-base checkpoint? (The non fine tuned version)? |
We did not change the bart-base model, which is downloaded from huggingface. |
Hi (@shijx12 @ShulinCao @teacherpeterpan @Flitternie @stellarkey),
thank you for your work.
I have some issue using the code base, can you kindly help me?
I don't know if the training works, but when I try to restore the checkpoint the predict.txt is full of "no".
My requirements.txt is the following:
The steps that I perform (from the KQAPro_Baseline/ folder [the root one]) are the following:
Thank you in advance.
Kind regards,
Andrea
The text was updated successfully, but these errors were encountered: