Skip to content

I don't see you do truncate when the sequence longer than 512 lengths? #2

@Louis-udm

Description

@Louis-udm

We know that when loading pretrained bert, max_seqence=512, but when you are dealing with the sentences from data set, each sentence is padding based on the longest sentence of the batch, but I don't see you do truncate when the sequence longer than 512 lengths?

Thanks

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