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

[add] Implementing a more stable Yandex Translate implementation #10

Merged
merged 5 commits into from Apr 27, 2021
Merged

[add] Implementing a more stable Yandex Translate implementation #10

merged 5 commits into from Apr 27, 2021

Conversation

ZhymabekRoman
Copy link
Contributor

26.04.2021_18.31.17_REC.mp4

@ZhymabekRoman
Copy link
Contributor Author

Fixes #4

@ZhymabekRoman
Copy link
Contributor Author

Oh, my God, I didn't finish something

@ZhymabekRoman
Copy link
Contributor Author

All right, ready. By the way, I had to remove the transliterating function in Yandex Translator because it does not work

Copy link
Owner

@Animenosekai Animenosekai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewing Zhymabek Roman's implementation of Yandex.Translate

translatepy/translate.py Outdated Show resolved Hide resolved
translatepy/translators/yandex.py Outdated Show resolved Hide resolved
translatepy/translators/yandex.py Outdated Show resolved Hide resolved
translatepy/translators/yandex.py Outdated Show resolved Hide resolved
translatepy/utils/lru_cacher.py Outdated Show resolved Hide resolved
translatepy/translate.py Outdated Show resolved Hide resolved
translatepy/translators/yandex.py Outdated Show resolved Hide resolved
@Animenosekai
Copy link
Owner

Thank you very much for your PR!

I just reviewed it and left some comments ~

@Animenosekai Animenosekai added the enhancement New feature or request label Apr 26, 2021
@ZhymabekRoman
Copy link
Contributor Author

Thank you for code reviewing and comments, tomorrow with fresh head look all above listed comments in code

Copy link
Owner

@Animenosekai Animenosekai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[review] I thought I would need to reimplement the SID system just for transliteration but it seems to work fine without it.

That's cool if we don't need it because it removes the file IO time (although I think that it shouldn't be a lot of overhead because the longest IO operation here is the internet request)

translatepy/translators/yandex.py Outdated Show resolved Hide resolved
@ZhymabekRoman
Copy link
Contributor Author

[review] I thought I would need to reimplement the SID system just for transliteration but it seems to work fine without it.

Transliteration in Yandex Translator does not require either SID or UCID, that is, transliteration is absolutely free, so it makes no sense to reimplement SID.

@Animenosekai
Copy link
Owner

[review] I thought I would need to reimplement the SID system just for transliteration but it seems to work fine without it.

Transliteration in Yandex Translator does not require either SID or UCID, that is, transliteration is absolutely free, so it makes no sense to reimplement SID.

Ok cool!

Do you want to make changes or should I merge your PR?

@ZhymabekRoman
Copy link
Contributor Author

Yes, PR is ready, you can merge.

@Animenosekai Animenosekai merged commit 4fb1a8c into Animenosekai:main Apr 27, 2021
Copy link
Owner

@Animenosekai Animenosekai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[merged] Thank you very much!!!

Just tested it by installing the main branch version (using pip install git+https://git url) and it works perfectly!!

@ZhymabekRoman ZhymabekRoman deleted the new_yandex_translate_implementation branch April 27, 2021 18:17
@ZhymabekRoman
Copy link
Contributor Author

Hello, @Animenosekai, Can you enable the discus function in the repository? I just have some thoughts and ideas that I would like to talk about, I don't see the point creating issue for this. Here is the instruction: https://docs.github.com/en/discussions/quickstart

@Animenosekai
Copy link
Owner

Hello, @Animenosekai, Can you enable the discus function in the repository? I just have some thoughts and ideas that I would like to talk about, I don't see the point creating issue for this. Here is the instruction: https://docs.github.com/en/discussions/quickstart

Added!

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

Successfully merging this pull request may close these issues.

None yet

2 participants