-
-
Notifications
You must be signed in to change notification settings - Fork 130
refactor(web): begin implementation of SearchCluster for merging paths reaching the same intermediate tokenization state 🚂 #14949
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: refactor/web/simplify-input-segments
Are you sure you want to change the base?
Conversation
User Test ResultsTest specification and instructions User tests are not required Test Artifacts
|
6ddd57f to
9068e40
Compare
1eaf922 to
ddf9a58
Compare
9068e40 to
b8457ec
Compare
228d93a to
f3fc256
Compare
f3fc256 to
a6e14c5
Compare
a6e14c5 to
a03bc15
Compare
02b9293 to
96a4b99
Compare
a03bc15 to
3f199ce
Compare
3fe8645 to
de3d86c
Compare
3f199ce to
0e70658
Compare
0e70658 to
72798ba
Compare
| }); | ||
|
|
||
| it('handles case that triggers a token merge: can+\'+t', () => { | ||
| it.skip('handles case that triggers a token merge: can+\'+t', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: double-check - is this still valid? I thought I reworked things to be supported at this point; this change may be a holdover from a previous implementation strategy.
076bfdc to
bc51029
Compare
ca906dd to
316abe3
Compare
bc51029 to
413fdcf
Compare
316abe3 to
ef700d0
Compare
413fdcf to
e9b8e2d
Compare
ef700d0 to
567ba68
Compare
e9b8e2d to
9b947b7
Compare
567ba68 to
0286e3c
Compare
This is to prepare for corrections from alternate tokenizations that could result from fat-fingering whitespace keys or similar effects. Build-bot: skip build:web Test-bot: skip
18c246a to
d98603f
Compare
| public stopTrackingResults() { | ||
| delete this.completedPaths; | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| public stopTrackingResults() { | |
| delete this.completedPaths; | |
| } |
This PR introduces a new implementation of the
SearchSpaceinterface -SearchCluster. TheSearchClustertype is designed to represent cases where two or moreSearchPathinstances represent the same total range of user input, as described in #15104's description as them "converging". In such cases, extending the search space by new input proceeds in exactly the same manner, regardless of which parent space is the original source. It's notably more efficient to cluster the paths together.Also note that
SearchClusterdirectly reflects aTokenizationSubset(as described in #15140) - any of the paths leading to the cluster will correct to words of the same length, representing the same keystroke range from the user. Use of this type thus allows us to build a singleContextTokenizationinstance to represent the convergence of these paths - both for correction-search operations and for preservation of state after application of a suggestion arising from it.Build-bot: skip build:web
Test-bot: skip