Skip to content

Commit 44c84f2

Browse files
committed
fix a typo in BertNamedEntityRecognizer step
1 parent 28187fc commit 44c84f2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

renard/pipeline/ner/ner.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def __init__(
155155
:param tokenizer: a custom tokenizer
156156
:param context_retriever: if specified, use
157157
``context_retriever`` to retrieve relevant global context
158-
at run time, generally trading runtme for NER performance.
158+
at run time, generally trading runtime for NER performance.
159159
"""
160160
if isinstance(model, str):
161161
self.huggingface_model_id = model
@@ -286,7 +286,6 @@ def batch_labels(
286286
inference_start = 0
287287

288288
for wplabel_j, wp_label in enumerate(wp_labels):
289-
290289
token_i = batchs.token_to_word(batch_i, wplabel_j)
291290
if token_i is None:
292291
continue

0 commit comments

Comments
 (0)