Skip to content

How to create the vocab files? (tokens.txt, non_padded_namespaces.txt, venue.txt) #45

Description

@piegu

Hi,

I'm testing the SPECTER training method with another model than Scibert (a non-English model present in the Hugging Face hub).

For doing that, I download the scibert tar file, untar it and replace files by the other BERT ones.

Here the files after untar:

data/
data/scibert_scivocab_uncased/
data/scibert_scivocab_uncased/scibert.tar.gz
data/scibert_scivocab_uncased/vocab.txt
data/vocab/
data/vocab/non_padded_namespaces.txt
data/vocab/tokens.txt
data/vocab/venue.txt

As we can see, the scibert tar file has a folder vocab with 3 files.

How theses files were created?
How can I created them from a non-English BERT model present in the Hugging Face hub?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions