Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
PJ-Finlay committed Aug 15, 2024
1 parent 51a14b0 commit a253add
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions argostranslate/sbd.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def split_sentences(self, text: str, lang_code: Optional[str] = None) -> List[st
# Spacy sentence boundary detection Sentencizer
# https://community.libretranslate.com/t/sentence-boundary-detection-for-machine-translation/606/3


# Download model:
# python -m spacy download xx_sent_ud_sm
class SpacySentencizerSmall(ISentenceBoundaryDetectionModel):
Expand Down
2 changes: 1 addition & 1 deletion argostranslate/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def is_same_structure(tag1: ITag | str, tag2: ITag | str) -> bool:
ARGOS_OPEN_TAG = "<argos-tag>"
ARGOS_CLOSE_TAG = "</argos-tag>"

GOLDEN_RATIO = (1 + 5 ** 0.5) / 2
GOLDEN_RATIO = (1 + 5**0.5) / 2


def flatten_tag(tag: ITag) -> str:
Expand Down

0 comments on commit a253add

Please sign in to comment.