Skip to content

Commit 8582c98

Browse files
author
Tom Searle
committed
CU-8698jzjj3: darglint fixes
1 parent 6117489 commit 8582c98

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

medcat-v1/medcat/utils/ner/deid.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,11 @@ def match_rules(rules: List[Tuple[str, str]], texts: List[str], cat: CAT) -> Lis
195195
196196
Uses a cat DeID model for pretty name mapping.
197197
198+
Args:
199+
rules (List[Tuple[str, str]]): List of tuples of pattern and cui
200+
texts (List[str]): List of texts to match rules on
201+
cat (CAT): The CAT instance
202+
198203
Examples:
199204
>>> rules = [
200205
('(123) 456-7890', '134'),

medcat-v1/medcat/utils/ner/metrics.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ def metrics(p, return_df=False, plus_recall=0, tokenizer=None, dataset=None, mer
2929
subword_label: The subword label.
3030
verbose: Whether to print the metrics.
3131
32+
Returns:
33+
Dict: A dictionary of metrics.
3234
"""
3335
"""TODO: This could be done better, for sure. But it works.""" # noqa
3436
predictions = np.array(p.predictions)

0 commit comments

Comments
 (0)