Xuan
03/11/2024, 7:56 AMOleg Yukhnevich
03/13/2024, 4:43 PMlatex
rendering inside Dokka is theoretically possible via Dokka Plugin, but it will only affect generated HTML, not the IDEA
Just in case, what is your use case?Xuan
03/13/2024, 6:29 PMOleg Yukhnevich
03/15/2024, 7:29 PMsolonovamax
03/19/2024, 4:38 AMThe similarity is computed as
\(\frac{w_d \lvert X \rvert + w_i \lvert Y \rvert - distance(X, Y)}{2}\).
The Cosine similarity between strings \(X\) and \(Y\) is
the Cosine of the angle between the two strings as vectors. It is computed as:
\(\frac{\vec{v_1} \cdot \vec{v_2}}{\lVert\vec{v_1}\rVert \times \lVert\vec{v_2}\rVert}\).
Where, \(\vec{v_1}\) and \(\vec{v_2}\) are the vector representation of string
\(X\) and \(Y\), respectively.
Each input string is converted into a set of n-grams, the Jaccard index is
then computed as \(\frac{\lVert V_1 \cap V_2 \rVert}{\lVert V_1 \cup V_2 \rVert}\).
Like Q-Gram distance, the input strings \(X\) and \(Y\) are first converted into sets of
n-grams \(V_1\) and \(V_2\) (sequences of n characters, also called k-shingles), but this time
the cardinality of each n-gram is not taken into account.having to read things like
\frac{\lVert V_1 \cap V_2 \rVert}{\lVert V_1 \cup V_2 \rVert}
for those who don't understand latex is not the best, and even for those who do understand it, and are experienced with it, it can be a tad confusing.Xuan
03/19/2024, 6:51 PMit makes the in-ide experience sub-parThat's why I said from the beginning, it's ugly. It only make sense to use latex when it's supported also in IDE.
solonovamax
03/19/2024, 6:52 PM