Skip to content

Question regarding the operation in dataloader #11

@letme-hj

Description

@letme-hj

I wonder why the characters are brought in inverse order. (L121)
I would appreciate if someone could tell me how this works! I doubt that I might have missed something.

data = np.array(
[
self.identity_mat[self.vocabulary.index(i)]
for i in list(raw_text)[::-1]
if i in self.vocabulary
],
dtype=np.float32,
)

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