Skip to content

Type page token/example list truncates multi-word sentences after highlighted span #58

Description

@fcbond

On e.g. http://127.0.0.1:5004/type/aj_-_i_le with erg_singlish selected, an
example sentence shows as "Are you kiasi or ?" — it should be
"Are you kiasi or what?". The trailing word(s) after the highlighted
span/token are being dropped in the token list view.

Need to find the rendering path for example-sentence tokens on the type page
(likely in web/db.py's sentence/gold retrieval or the JS that highlights the
matched span) and fix the off-by-one/truncation that loses trailing tokens.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions