arubenruben
commited on
Commit
·
fa92478
1
Parent(s):
d200bec
Update deploy_pipeline.py
Browse files- deploy_pipeline.py +1 -1
deploy_pipeline.py
CHANGED
@@ -14,7 +14,7 @@ class TokenizeAndAlignLabelsStep():
|
|
14 |
# Adapted From : https://huggingface.co/docs/transformers/tasks/token_classification
|
15 |
def tokenize_and_align_labels(self, examples, tokenizer):
|
16 |
|
17 |
-
tokenized_inputs = tokenizer(examples, padding='max_length', truncation=True, max_length=
|
18 |
|
19 |
# Map tokens to their respective word.
|
20 |
word_ids = tokenized_inputs.word_ids()
|
|
|
14 |
# Adapted From : https://huggingface.co/docs/transformers/tasks/token_classification
|
15 |
def tokenize_and_align_labels(self, examples, tokenizer):
|
16 |
|
17 |
+
tokenized_inputs = tokenizer(examples, padding='max_length', truncation=True, max_length=128)
|
18 |
|
19 |
# Map tokens to their respective word.
|
20 |
word_ids = tokenized_inputs.word_ids()
|