Skip to content

Regarding the zeroPadding/zip_longest function #21

@debanjanghosh

Description

@debanjanghosh

I don't know if it has been answered before but I was wondering what is the use of the following,
padList = zeroPadding(indexes_batch)
in the function, inputVar(l, voc)

We already have the correct batch here,
indexes_batch = [indexesFromSentence(voc, sentence) for sentence in l]
the indexes_batch contains the input (with length) which gets changed by the zeroPadding function call! Any explanation?

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