Feature #2234
Pick right parts of "KP sentence" and sentences before and after
0%
Description
In 'Python 3 Library Reference > Data Types' document (https://edutestdev-240612.appspot.com/document/python-3-pl-2021-10-08-170000.99999-spl-library-reference?documentURL=10015%2Fprd%2F3%2Flibrary%2Fdatatypes.html), thereis a sentence: "The str class is used to hold Unicode strings, and the bytes and bytearray classes are used to hold binary data.".
Here, 'class' has a 0.985 match with 'Python 3 Library Reference > Binary Data Services > struct — Interpret bytes as packed binary data > Classes' because we consider that 'data' and 'bytes' match between sentence and heading hierarchy of simdoc. This is a problem because we should really have tried a match with just "The str class is used to hold Unicode strings' part of the sentence and not the second part of the sentence which is not really relevant.
On the other hand, some parts of sentences before and after the sentence containing the KP may also suggest whether there is a context match.
We should attempt solving this in 2 steps: (1) pick the correct part of the "KP sentence" for context match (2) pick the correct parts of the sentences prior to and after the "KP sentence".
No data to display