Skip to content
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

Question about the evaluation method #18

Open
Jomensy opened this issue Jan 22, 2019 · 5 comments
Open

Question about the evaluation method #18

Jomensy opened this issue Jan 22, 2019 · 5 comments

Comments

@Jomensy
Copy link

Jomensy commented Jan 22, 2019

Hi Jianshu! Is the result (ExpRate, <=1, <=2, <=3) in the WAP paper are gotten from the translate.py file? I found that you used the official tool to evaluate the results at expresssion level in the WAP paper. But in the released code, you have also offered a script 'test.sh' to evaluate the WER and ExpRate. Will the two evaluate methods above generate the same result? Actually, I don't know how to use the official tool of CROHME, so i'm wondering whether your script can replace the tool? If not, can you please tell me how you used the official tool in your experiments? Thanks! By the way, your paper and code are excellent and help me a lot!

@JianshuZhang
Copy link
Owner

JianshuZhang commented Jan 22, 2019 via email

@Jomensy
Copy link
Author

Jomensy commented Jan 23, 2019

Thanks for your quick answer! I have downloaded the tools. But I still don't know how to use those tools. Could you please tell me how to use these tools to translate the 'valid_decode_result.txt' or 'test_decode_result.txt' to the results in your experiments? Thanks for your generous help!

@JianshuZhang
Copy link
Owner

JianshuZhang commented Jan 23, 2019 via email

@Jomensy
Copy link
Author

Jomensy commented Jan 23, 2019

Thanks again! But I'm so sorry to bother you again. I have installed the LaTeXML. i used it to translate the LaTeX strings to pmml representations by this command latexmlmath --pmml=- \\frac{b\\pm\\sqrt{b^2-4ac}}{2a} and i got the result below:
<?xml version="1.0" encoding="UTF-8"?> <math xmlns="http://www.w3.org/1998/Math/MathML" alttext="\frac{b\pm\sqrt{b^{2}-4ac}}{2a}" display="block"> <mfrac> <mrow> <mi>b</mi> <mo>±</mo> <msqrt> <mrow> <msup> <mi>b</mi> <mn>2</mn> </msup> <mo>-</mo> <mrow> <mn>4</mn> <mo>⁢</mo> <mi>a</mi> <mo>⁢</mo> <mi>c</mi> </mrow> </mrow> </msqrt> </mrow> <mrow> <mn>2</mn> <mo>⁢</mo> <mi>a</mi> </mrow> </mfrac> </math>
I'm not sure whether my command is correct. Can you tell me?
It seems that the pmml representation is the mathML tree for the math expression. What still confusing me is that how to translate the pmml representation to .inkml file (which is used by the script 'evalInkml_v1.XX.pl' to evaluate the results). Can you tell me which exact tool in CROHMELib you have used to transform the pmml representation into inkml file? And which is the tool to evaluate the results? Is it evalInkml_v1.XX.pl? The description in CROHMELib does not seem clear enough for me. Thanks for your help!

@JianshuZhang
Copy link
Owner

JianshuZhang commented Jan 24, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants