UER-py
UER-py copied to clipboard
Conflicting option error encountered
Encounter conflicting option error when using scripts including scripts/generate_lm.py, scripts/extract_features.py, scripts/cloze_test, and etc.
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.