Skip to content

Commit

Permalink
fixed typing in utils
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly-Protasov committed Dec 20, 2023
1 parent 67db46d commit 1b61086
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion probing/ud_filter/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ def determine_ud_savepath(
return Path(final_path)


def delete_duplicates(probing_dict: Dict[str, List[str]]) -> Dict[str, List[str]]:
def delete_duplicates(
probing_dict: Dict[str, List[Tuple[str, List[int]]]]
) -> Dict[str, List[Tuple[str, List[int]]]]:
"""Deletes sentences with more than one different classes of node_pattern found"""

all_sent = [sent for cl_sent in probing_dict.values() for sent, inds in cl_sent]
Expand Down

0 comments on commit 1b61086

Please sign in to comment.