Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in DesktopTranslator from turkish into english or russian or etc #3

Open
Andrey987 opened this issue May 22, 2023 · 0 comments
Open

Comments

@Andrey987
Copy link

Hello. An error occurs in the DesktopTranslator program when translating from Turkish into English or another language. Is it possible to fix the error?
Error: 1
SentenceSplitterException Exception in Tk callback
Function: <bound method TranslatorGUI.translate_input of <main.TranslatorGUI object at 0x000002D11F17CC10>> (type: <class 'method'>)
Args: ()
Traceback (innermost last):
File "Pmw.py", line 1787, in call

File "translator.py", line 434, in translate_input

File "utils\paragraph_splitter.py", line 40, in paragraph_tokenizer
paragraph_sentences = split_text_into_sentences(paragraph, language)
File "sentence_splitter_init_.py", line 215, in split_text_into_sentences

File "sentence_splitter_init_.py", line 53, in init

SentenceSplitterException: Non-breaking prefix file for language 'tr' was not found at path 'C:\Program Files (x86)\DesktopTranslator\sentence_splitter\non_breaking_prefixes\tr.txt'

Adım Ece ve on iki yaşındayım. Her sabah 7'de uyanırım, kahvaltımı yaparım ve okula giderim. Boş zamanlarımda bahçede kitap okumayı severim. Küçük bir erkek kardeşim var. Kardeşim üç yaşında ve resim yapmayı sever. Evde her gün top oynar ve şarkı söyler. Kardeşim ve ben makarna yemeyi severiz. Bazen mutfakta yemekleri biz hazırlarız.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant