Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set the parameter of the biobert #39

Open
201720502wrl opened this issue Mar 8, 2023 · 0 comments
Open

How to set the parameter of the biobert #39

201720502wrl opened this issue Mar 8, 2023 · 0 comments

Comments

@201720502wrl
Copy link

I copy the following into the code,but report an error:
export
SAVE_DIR=./output
export
DATA_DIR=../datasets/NER
export
MAX_LENGTH=128
export
BATCH_SIZE=32
export
NUM_EPOCHS=30
export
SAVE_STEPS=1000
export
ENTITY=NCBI-disease
export
SEED=1
python
run_ner.py

--data_dir
${DATA_DIR}/${ENTITY}/

--labels
${DATA_DIR}/${ENTITY}/labels.txt

--model_name_or_path
dmis-lab/biobert-base-cased-v1.1

--output_dir
${SAVE_DIR}/${ENTITY}

--max_seq_length
${MAX_LENGTH}

--num_train_epochs
${NUM_EPOCHS}

--per_device_train_batch_size
${BATCH_SIZE}

--save_steps
${SAVE_STEPS}

--seed
${SEED}

--do_train

--do_eval

--do_predict

--overwrite_output_dir

run_ner.py: error: argument --max_seq_length: invalid int value: '${MAX_LENGTH}'
How to modify?Help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant