Skip to content

0 index anime #31

@MRamazan

Description

@MRamazan

in dataset/base.py file, this line:
smap = {s: i for i, s in enumerate(set(df['sid']))}

should be changed to:
smap = {s: i + 1 for i, s in enumerate(set(df['sid']))}

because enumerate starts from 0 and bert model ignores 0. 0 indexed anime will be considered from the padded part of the vector and will be ignored. to avoid that, we should start from index 1.

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