07:13
@ArnaudD. Approach0 parser treats expression symbols differently by their types or symbols. For example, both \mid and | are of type VERT, but they obviously are different symbols. In theory you can get both of them by query either of them, but the search results will prioritize exact symbol match. This is designed to differentiate many other things in general, such as equality and inequalities, variables and even integrals and sums. Supposedly we do not want too constrained on similarities.
2 hours later…
1 hour later…
10:12
@MartinSleziak Exactly. When a symbol is next to \left or \right, or it is embedded with grammar implication such as \lVert, they will need to be further parsed depending on its context. It is ambiguity that makes me decide to distinguish \vert and \lvert because in set language you may have something like {x \mid x \in R} notation and for efficiency reason the parser should know it is not necessarily paired with another VERT, because in this case it is not absolute value.
Of course you can still treat vertical bars in |x-b| as individual tokens, but that will lose a level of semantics and there is ambiguity to pair the vertical bars if you have expression like {x | |x|>2 }.
So in short, we want to better understand paired token such as \left and \right something, but if tokens are not explicitly paired, we do not want to create ambiguity. So my solution is just treating them differently. I admit there must be ways to be more intelligent on this, but on the other hand the parser needs to be efficient to run for millions of posts, so efficiency still matters.
For example, in Arnaud D.'s search, I'd have to try both with \left..\right and without, as in the searches which are linked here: chat.stackexchange.com/transcript/message/52786924#52786924
8 hours later…
18:12
@WeiZhong Just a note, it is still pretty much work in progress, but I have updated the docker repository github.com/TheSil/docker-approach-test so that there are now two images, the build image and the deployment image.
The build image needs to be built usually just once and can be then instantiated whenever the build of approach from latest sources is needed, while the deploy image can be instantiated to run web/indexer/searchd containers (currently only documented running the web, for searchd/indexer containers i will have to deal with index persistency).
« first day (1159 days earlier) ← previous day next day → last day (1827 days later) »
Transcript for
Dec4
Dec '195
Dec6
In the search of a question
When you are looking for a specific question (using Approach0 ...