Tangent-3 at the NTCIR-12 MathIR Task