File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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
2927class 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###############################################
You can’t perform that action at this time.
0 commit comments