Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Data/generate_vocab.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def write_vocab_file(filepath, vocab):
parser = argparse.ArgumentParser()
parser.add_argument("-d", "--dir", help="The dir should contain several sub_dirs which contain text files belong to different categories", type=str, required=True)
parser.add_argument("-f", "--file", help="The file is the final generated feature vocabulary file.", type=str, required=True)
parser.add_argument("s", "--size", help="The target vocabulary size.", type=int, default=10000)
parser.add_argument("-s", "--size", help="The target vocabulary size.", type=int, default=10000)
args = parser.parse_args()

gen_vocab(dataset_dir=args.dir, vocab_file=args.file, vocab_size=args.size)
gen_vocab(dataset_dir=args.dir, vocab_file=args.file, vocab_size=args.size)
2 changes: 1 addition & 1 deletion Model/pretrainDexBERT.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export SAVE_DIR=../save_dir/DexBERT
export LOG_DIR=../log_dir/DexBERT

python pretrainDexBERT.py \
--train_cfg confi/DexBERT/pretrain.json \
--train_cfg config/DexBERT/pretrain.json \
--model_cfg config/DexBERT/bert_base.json \
--data_file $DATA_FILE \
--vocab $VOCAB_FILE \
Expand Down