-
Notifications
You must be signed in to change notification settings - Fork 26
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
How to compute smatch directly from triplets #38
Comments
You might need some customization. Depending on your input format, you may want to add some wrappers around get_best_match() function (which get the highest triple match number between two sets of triples), then compute the metrics similar to the score_amr_pairs() function in smatch.py. |
Also, I find that even though I fix the random seed in smatch.py, I also get different smatch scores when different runs. |
So strange, the same case output different results |
match_triple_dict is a global variable. It is cleared in score_amr_pairs() function. Since you are calling get_best_match() directly without using score_amr_pairs() as the wrapper, you need to clear this variable before computing every pair of triples. |
Thanks for your help!!! |
Hi, thanks for your nice work.
For some reason, I need to compute the smatch directly from the triples such as
Could you tell me how to do this using
smatch
.Thanks a lot!
The text was updated successfully, but these errors were encountered: