JianshuZhang/WAP

Question about the evaluation method

Opened this issue · 5 comments

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!

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!

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!