Skip to content

Commit a253add

Browse files
committed
Formatting
1 parent 51a14b0 commit a253add

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

argostranslate/sbd.py

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def split_sentences(self, text: str, lang_code: Optional[str] = None) -> List[st
1919
# Spacy sentence boundary detection Sentencizer
2020
# https://community.libretranslate.com/t/sentence-boundary-detection-for-machine-translation/606/3
2121

22+
2223
# Download model:
2324
# python -m spacy download xx_sent_ud_sm
2425
class SpacySentencizerSmall(ISentenceBoundaryDetectionModel):

argostranslate/tags.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def is_same_structure(tag1: ITag | str, tag2: ITag | str) -> bool:
114114
ARGOS_OPEN_TAG = "<argos-tag>"
115115
ARGOS_CLOSE_TAG = "</argos-tag>"
116116

117-
GOLDEN_RATIO = (1 + 5 ** 0.5) / 2
117+
GOLDEN_RATIO = (1 + 5**0.5) / 2
118118

119119

120120
def flatten_tag(tag: ITag) -> str:

0 commit comments

Comments
 (0)