Skip to content

Commit

Permalink
fix rust & mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Fuchs committed Sep 11, 2023
1 parent f1a4d96 commit 3ddc564
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flair/models/multitask_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def split_batch_to_task_ids(sentences: Union[List[Sentence], Sentence], all_task
batch_to_task_mapping[multitask_id.value] = [sentence_id]
return batch_to_task_mapping

def evaluate(
def evaluate( # type: ignore[override]
self,
data_points,
gold_label_type: str,
Expand Down
2 changes: 1 addition & 1 deletion flair/trainers/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def train_custom(
if inspect.isclass(sampler):
sampler = sampler()
# set dataset to sample from
sampler.set_dataset(train_data)
sampler.set_dataset(train_data) # type: ignore[union-attr]
shuffle = False

# this field stores the names of all dynamic embeddings in the model (determined after first forward pass)
Expand Down

0 comments on commit 3ddc564

Please sign in to comment.