Skip to content

Commit

Permalink
Modify token classification processor default dataset args (#2005)
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix authored Sep 2, 2024
1 parent ad98dc9 commit bb46ebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimum/utils/preprocessing/token_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

class TokenClassificationProcessing(TaskProcessor):
ACCEPTED_PREPROCESSOR_CLASSES = (PreTrainedTokenizerBase,)
DEFAULT_DATASET_ARGS = {"path": "conll2003", "trust_remote_code": True}
DEFAULT_DATASET_ARGS = "conll2003"
DEFAUL_DATASET_DATA_KEYS = {"primary": "tokens"}
ALLOWED_DATA_KEY_NAMES = {"primary"}
DEFAULT_REF_KEYS = ["ner_tags", "pos_tags", "chunk_tags"]
Expand Down

0 comments on commit bb46ebe

Please sign in to comment.