Skip to content

[QUESTION] Confusion about return if args.partitions==1 #1052

Description

@qazwsx74269

When I want to preprocess data for pretraining Bert model, I find this code snippet,

python tools/preprocess_data.py \
       --input my-corpus.json \
       --output-prefix my-bert \
       --vocab-file bert-vocab.txt \
       --tokenizer-type BertWordPieceLowerCase \
       --split-sentences

does not work. It won't generate .bin and .idx files because return after if args.partitions==1 ends the program.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions