Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

elasticsearch - What is the best way to match text with math expressions inside?

My problem is to match text with math expressions inside. I saw this topic - What is the best way to index documents which contain mathematical expression in elastic search?

But in my context I can't just create an additional field with math expression. I have to match text like math tasks for students and these tasks could have multiple math expressions. I think the MathML is most preferred format here because I can split MathML tags into words and match them as a usual words.

I'm interested to get most close match results to math expressions. What is the most proper way to reach this kind of matching?

Examples:

  1. Solve the equation (2x + 7) ^ 2 = (2x - 1) ^ 2 .

  2. Find all values of the parameter a, for each of which the equation: | x - a ^ 2 + a + 2 | + | x - a ^ 2 + 3a - 1 | = 2a - 3 has roots, but none of them belongs to the interval (4; 19)

    P.S. graphical representation of equation: equation pict

question from:https://stackoverflow.com/questions/65881399/what-is-the-best-way-to-match-text-with-math-expressions-inside

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...