Skip to content

Commit 89ae54e

Browse files
committed
Formatting
1 parent 4cb291e commit 89ae54e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

argostranslate/sbd.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ def get_stanza_processors(lang_code: str, resources: dict) -> str:
2121

2222

2323
# Cache SpaCy model once at module level
24-
_cached_spacy_path: str | None = (
25-
cache_spacy()
26-
)
24+
_cached_spacy_path: str | None = cache_spacy()
2725

2826

2927
class ISentenceBoundaryDetectionModel:
@@ -101,7 +99,9 @@ def __init__(self, pkg: Package):
10199
self.fallback_to_spacy = False
102100
except Exception as e:
103101
info(f"Stanza pipeline failed for language '{pkg.from_code}': {e}")
104-
info(f"Falling back to SpaCy sentence boundary detection for {pkg.from_code}")
102+
info(
103+
f"Falling back to SpaCy sentence boundary detection for {pkg.from_code}"
104+
)
105105
self.stanza_pipeline = None
106106
self.fallback_to_spacy = True
107107
self._init_spacy_fallback()
@@ -122,6 +122,7 @@ def __str__(self):
122122
else:
123123
return "StanzaSentencizer"
124124

125+
125126
###############################################
126127
#### Few Shot Sentence Boundary Detection ####
127128
###############################################

0 commit comments

Comments
 (0)