Skip to content

Commit

Permalink
Line length 88
Browse files Browse the repository at this point in the history
  • Loading branch information
illorca committed May 11, 2023
1 parent 93a7726 commit a4a9141
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scispacy/umls_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def read_umls_concepts(
concept_details: Dict,
source: Optional[str] = None,
lang: str = "ENG",
non_suppressed: bool = True
non_suppressed: bool = True,
):
"""
Read the concepts file MRCONSO.RRF from a UMLS release and store it in
Expand Down Expand Up @@ -72,7 +72,9 @@ def read_umls_concepts(
splits = line.strip().split("|")
assert len(headers) == len(splits), (headers, splits)
concept = dict(zip(headers, splits))
if (lang is not None and concept["LAT"] != lang) or (non_suppressed and concept["SUPPRESS"] != "N"):
if (lang is not None and concept["LAT"] != lang) or (
non_suppressed and concept["SUPPRESS"] != "N"
):
continue # Keep non-suppressed concepts in target language only

if source is not None:
Expand Down

0 comments on commit a4a9141

Please sign in to comment.