Created
June 11, 2015 14:41
-
-
Save jimmyli97/ef561d714a98a058b7a4 to your computer and use it in GitHub Desktop.
example for formula ID ambiguity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mws:expr url="math.3.0"> | |
<math xmlns="http://www.w3.org/1998/Math/MathML" id="p1.1.m1" class="ltx_Math" alttext="{\displaystyle a}" display="inline" xml:id="p1.1.m1.1" xref="p1.1.m1.1.cmml"> | |
<semantics xml:id="p1.1.m1.1a" xref="p1.1.m1.1.cmml"> | |
<mi xml:id="p1.1.m1.1.1" xref="p1.1.m1.1.1.cmml">a</mi> | |
<annotation-xml encoding="MathML-Content" xml:id="p1.1.m1.1.cmml" xref="p1.1.m1.1"> | |
<ci xml:id="p1.1.m1.1.1.cmml" xref="p1.1.m1.1.1">a</ci> | |
</annotation-xml> | |
<annotation encoding="application/x-tex" xml:id="p1.1.m1.1b" xref="p1.1.m1.1.cmml">{\displaystyle a}</annotation> | |
</semantics> | |
</math> | |
</mws:expr> | |
<mws:expr url="math.4.0"> | |
<math xmlns="http://www.w3.org/1998/Math/MathML" id="p1.1.m1" class="ltx_Math" alttext="{\displaystyle{{\bar{\alpha}}(\theta_{i})}}" display="inline" xml:id="p1.1.m1.1" xref="p1.1.m1.1.cmml"> | |
<semantics xml:id="p1.1.m1.1a" xref="p1.1.m1.1.cmml"> | |
<mrow xml:id="p1.1.m1.1.6" xref="p1.1.m1.1.6.cmml"> | |
<mover accent="true" xml:id="p1.1.m1.1.1" xref="p1.1.m1.1.1.cmml"> | |
<mi xml:id="p1.1.m1.1.1.2" xref="p1.1.m1.1.1.2.cmml">α</mi> | |
<mo stretchy="false" xml:id="p1.1.m1.1.1.1" xref="p1.1.m1.1.1.1.cmml">¯</mo> | |
</mover> | |
<mo xml:id="p1.1.m1.1.6.1" xref="p1.1.m1.1.6.1.cmml"></mo> | |
<mrow xml:id="p1.1.m1.1.6.2" xref="p1.1.m1.1.6.2.cmml"> | |
<mo xml:id="p1.1.m1.1.6.2a" xref="p1.1.m1.1.6.2.cmml">(</mo> | |
<msub xml:id="p1.1.m1.1.6.2b" xref="p1.1.m1.1.6.2.cmml"> | |
<mi xml:id="p1.1.m1.1.3" xref="p1.1.m1.1.3.cmml">θ</mi> | |
<mi xml:id="p1.1.m1.1.4.1" xref="p1.1.m1.1.4.1.cmml">i</mi> | |
</msub> | |
<mo xml:id="p1.1.m1.1.6.2c" xref="p1.1.m1.1.6.2.cmml">)</mo> | |
</mrow> | |
</mrow> | |
<annotation-xml encoding="MathML-Content" xml:id="p1.1.m1.1.cmml" xref="p1.1.m1.1"> | |
<apply xml:id="p1.1.m1.1.6.cmml" xref="p1.1.m1.1.6"> | |
<times xml:id="p1.1.m1.1.6.1.cmml" xref="p1.1.m1.1.6.1"/> | |
<apply xml:id="p1.1.m1.1.1.cmml" xref="p1.1.m1.1.1"> | |
<ci xml:id="p1.1.m1.1.1.1.cmml" xref="p1.1.m1.1.1.1">normal-¯</ci> | |
<ci xml:id="p1.1.m1.1.1.2.cmml" xref="p1.1.m1.1.1.2">α</ci> | |
</apply> | |
<apply xml:id="p1.1.m1.1.6.2.cmml" xref="p1.1.m1.1.6.2"> | |
<csymbol cd="ambiguous" xml:id="p1.1.m1.1.6.2.1.cmml">subscript</csymbol> | |
<ci xml:id="p1.1.m1.1.3.cmml" xref="p1.1.m1.1.3">θ</ci> | |
<ci xml:id="p1.1.m1.1.4.1.cmml" xref="p1.1.m1.1.4.1">i</ci> | |
</apply> | |
</apply> | |
</annotation-xml> | |
<annotation encoding="application/x-tex" xml:id="p1.1.m1.1b" xref="p1.1.m1.1.cmml">{\displaystyle{{\bar{\alpha}}(\theta_{i})}}</annotation> | |
</semantics> | |
</math> | |
</mws:expr> |
I think filename is the url. You are mixing the mws dump format with the NTCIR dump format here.
Probably you mix the formats since I mixed them
let me see if I can find the NTCIR dump format spec
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't think the query is relevant to my question, only the result of the query - the NTCIR format says that you return results in the following format:
Where "for" attributes specify the query ID, and "xref" attributes specify the formula ID in the result.
NTCIR format states that the
<formula>
xref attribute is of form "filename#id", where ID is the formula ID.So my question is, if the formula ID is "p1.1.m1.1.1.cmml", how do you specify which result it is using the NTCIR format? Do you use something like "filename#math.3.0#p1.1.m1.1.1.cmml"?