UER-py icon indicating copy to clipboard operation
UER-py copied to clipboard

Conflicting option error encountered

Open zhezhaoa opened this issue 2 years ago • 1 comments

Encounter conflicting option error when using scripts including scripts/generate_lm.py, scripts/extract_features.py, scripts/cloze_test, and etc.

zhezhaoa avatar Mar 06 '22 02:03 zhezhaoa

ArgumentParser objects do not allow two actions with the same option string。So either remove the arguments with the same option string, or add "conflict_handler='resolve' "when creating the object, which helps override any older arguments with the same option string.

Eric8932 avatar Mar 06 '22 07:03 Eric8932