Skip to content

Allow vocab order to be read from file #555

@jumelet

Description

@jumelet

When using a pretrained model with a fixed vocab order, the functionality of sorting the vocab by frequency (and alphabet) is causing trouble.

I have a simple .txt file with a vocab entry on each line, but it seems that the only way I can still use the torchtext Vocab utilities by setting the itos/stoi attributes myself, is this correct?

Related to #439

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions