Skip to content

[Bug]: When changing models during predictions #59

@lopezjuanma96

Description

@lopezjuanma96

Contact Details

No response

What happened?

A bug happened!

We've already worked on rerunning predictions when changing models in between the writing of a sentence. Here's a bug with it: the prediction should be run on "secured" words only, meaning words previous to the last whitespace:

  1. User writing "yo tengo una ca" with predictions being "casa", "camioneta"..
  2. User changes model.
  3. Predictions should be searched for "yo tengo una" and not "yo tengo una ca".

Obviously in the cases where the user changes model before pressing space on an already written word, this would predict on anything that's before it, which may seem invalid but we have no way to know when they have ended writing each word, and would only need them to press the spacebar once again. Another problem that arises if this is not solved is:

  1. User finishes writing the word "tengo" but doesn't press add a space after it.
  2. User changes model.
  3. User get's prediction for "tengo" (when they shouldn't) but since they haven't pressed spaced the software think the predictions should overwrite the current word and replaces "tengo" with the prediction they choose.

This all requires too to include a cursor for user's to clearly locate spaces and positions throughout the sentences

Version

6.7.x (Production)

Where are you seeing the problem on?

Chrome (WebApp)

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions