Skip to content

List boundary discards one token in the context window #10

@jonnybluesman

Description

@jonnybluesman

enumerate(word_ids[max(i - boundary, 0):i + boundary]) if u != v]

I think i + boundary should include a + 1 to make it inclusive, otherwise the right context takes 1 token less in the resulting skipgrams.

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