Skip to content

Commit

Permalink
🎨 Fix Flake
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Martínez Galindo <[email protected]>
  • Loading branch information
Marcos Martínez Galindo authored and Marcos Martínez Galindo committed Aug 15, 2024
1 parent de07078 commit ba4850c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion zshot/evaluation/dataset/med_mentions/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}

MEDMENTIONS_EXPLANATORY_INVERSE_MAPPING = {
v:k for k, v in MEDMENTIONS_EXPLANATORY_MAPPING.items()
v: k for k, v in MEDMENTIONS_EXPLANATORY_MAPPING.items()
}

MEDMENTIONS_SPLITS = {
Expand Down
2 changes: 1 addition & 1 deletion zshot/evaluation/dataset/ontonotes/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}

ONTONOTES_EXPLANATORY_INVERSE_MAPPING = {
v:k for k, v in ONTONOTES_EXPLANATORY_MAPPING.items()
v: k for k, v in ONTONOTES_EXPLANATORY_MAPPING.items()
}

ONTONOTES_ENTITIES = [Entity(name='NEG',
Expand Down
2 changes: 0 additions & 2 deletions zshot/evaluation/run_evaluation.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import argparse
from typing import Union

import spacy
from datasets import DatasetDict

from zshot import PipelineConfig
from zshot.evaluation import load_medmentions_zs, load_ontonotes_zs
Expand Down

0 comments on commit ba4850c

Please sign in to comment.