Skip to content

Commit

Permalink
fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Aethor committed Sep 5, 2024
1 parent 552b5e8 commit 91fd75b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions renard/pipeline/corefs/corefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 20,7 @@ class BertCoreferenceResolver(PipelineStep):
def __init__(
self,
model: Optional[Union[BertForCoreferenceResolution]] = None,
hugginface_model_id: Optional[str] = None,
huggingface_model_id: Optional[str] = None,
batch_size: int = 1,
device: Literal["auto", "cuda", "cpu"] = "auto",
tokenizer: Optional[PreTrainedTokenizerFast] = None,
Expand All @@ -47,7 47,7 @@ def __init__(
inference on the whole document.
"""
if isinstance(model, str):
self.hugginface_model_id = hugginface_model_id
self.hugginface_model_id = huggingface_model_id
self.model = None # model will be init by _pipeline_init_
else:
self.hugginface_model_id = None
Expand Down
2 changes: 1 addition & 1 deletion renard/pipeline/ner/ner.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 39,7 @@ def shifted(self, shift: int) -> NEREntity:
"""
.. note::
This method is implemtented here to avoid type issues. Since
This method is implemented here to avoid type issues. Since
:meth:`.Mention.shifted` cannot be annotated as returning
``Self``, this method annotate the correct return type when
using :meth:`.NEREntity.shifted`.
Expand Down

0 comments on commit 91fd75b

Please sign in to comment.