-
Notifications
You must be signed in to change notification settings - Fork 20
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 DeepL translation #108
Merged
+1,009
−140
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
ecc167d
add DeepL translation
Zethson 412a547
Fix typo
Zethson 8a3e987
Add stubs
Zethson 568536d
Add translate_obs
Zethson 15cdd9f
Add get_column_indices, get_column_values and AnnData creation utilities
Zethson 516d42b
fix nox
Zethson 54a4d30
poetry lock
Zethson c022484
finalized draft
Zethson 286c8e6
add deepl var translation
Zethson a6b3659
add N802 to flake ignore
Zethson 502cb24
further prepare X translation
Zethson 1a93824
fix nox
Zethson d17dbd6
poetry lock
Zethson f3fd41a
finalize DeepL translation
Zethson cc653a5
fix nox
Zethson 4732c3b
poetry lock
Zethson b3199c1
add DeepL to docs
Zethson 60ce3c9
fix nox
Zethson 64aa780
added nocovers where appropriate
Zethson c4308da
DeepL PR review
Zethson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add DeepL to docs
Signed-off-by: zethson <lukas.heumos@posteo.net>
commit b3199c1ef3236076c68aea41c90cd7a750e51868
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,7 @@ td:nth-child(1) { | |
td:nth-child(2) { | ||
width: 100%; | ||
} | ||
|
||
span.pre { | ||
color:#007dce; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
:github_url: ehrapy.api.tools.DeepL.authenticate | ||
|
||
ehrapy.api.tools.DeepL.authenticate | ||
=================================== | ||
|
||
.. currentmodule:: ehrapy.api.tools | ||
|
||
.. automethod:: DeepL.authenticate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
:github_url: ehrapy.api.tools.DeepL.create_glossary | ||
|
||
ehrapy.api.tools.DeepL.create\_glossary | ||
======================================= | ||
|
||
.. currentmodule:: ehrapy.api.tools | ||
|
||
.. automethod:: DeepL.create_glossary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
:github_url: ehrapy.api.tools.DeepL.print_source_languages | ||
|
||
ehrapy.api.tools.DeepL.print\_source\_languages | ||
=============================================== | ||
|
||
.. currentmodule:: ehrapy.api.tools | ||
|
||
.. automethod:: DeepL.print_source_languages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
:github_url: ehrapy.api.tools.DeepL.print_target_languages | ||
|
||
ehrapy.api.tools.DeepL.print\_target\_languages | ||
=============================================== | ||
|
||
.. currentmodule:: ehrapy.api.tools | ||
|
||
.. automethod:: DeepL.print_target_languages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
:github_url: ehrapy.api.tools.DeepL | ||
|
||
ehrapy.api.tools.DeepL | ||
====================== | ||
|
||
.. currentmodule:: ehrapy.api.tools | ||
|
||
.. autoclass:: DeepL | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
:toctree: . | ||
|
||
~ehrapy.api.tools.DeepL.authenticate | ||
~ehrapy.api.tools.DeepL.create_glossary | ||
~ehrapy.api.tools.DeepL.print_source_languages | ||
~ehrapy.api.tools.DeepL.print_target_languages | ||
~ehrapy.api.tools.DeepL.translate_X_column | ||
~ehrapy.api.tools.DeepL.translate_document | ||
~ehrapy.api.tools.DeepL.translate_obs_column | ||
~ehrapy.api.tools.DeepL.translate_text | ||
~ehrapy.api.tools.DeepL.translate_var_column | ||
~ehrapy.api.tools.DeepL.translate_with_glossary | ||
|
||
|
||
|
||
.. _sphx_glr_backref_ehrapy.api.tools.DeepL: | ||
|
||
.. minigallery:: ehrapy.api.tools.DeepL | ||
:add-heading: Gallery | ||
:heading-level: - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
:github_url: ehrapy.api.tools.DeepL.translate_X_column | ||
|
||
ehrapy.api.tools.DeepL.translate\_X\_column | ||
=========================================== | ||
|
||
.. currentmodule:: ehrapy.api.tools | ||
|
||
.. automethod:: DeepL.translate_X_column |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
:github_url: ehrapy.api.tools.DeepL.translate_document | ||
|
||
ehrapy.api.tools.DeepL.translate\_document | ||
========================================== | ||
|
||
.. currentmodule:: ehrapy.api.tools | ||
|
||
.. automethod:: DeepL.translate_document |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
:github_url: ehrapy.api.tools.DeepL.translate_obs_column | ||
|
||
ehrapy.api.tools.DeepL.translate\_obs\_column | ||
============================================= | ||
|
||
.. currentmodule:: ehrapy.api.tools | ||
|
||
.. automethod:: DeepL.translate_obs_column |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
:github_url: ehrapy.api.tools.DeepL.translate_text | ||
|
||
ehrapy.api.tools.DeepL.translate\_text | ||
====================================== | ||
|
||
.. currentmodule:: ehrapy.api.tools | ||
|
||
.. automethod:: DeepL.translate_text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
:github_url: ehrapy.api.tools.DeepL.translate_var_column | ||
|
||
ehrapy.api.tools.DeepL.translate\_var\_column | ||
============================================= | ||
|
||
.. currentmodule:: ehrapy.api.tools | ||
|
||
.. automethod:: DeepL.translate_var_column |
8 changes: 8 additions & 0 deletions
8
docs/tools/ehrapy.api.tools.DeepL.translate_with_glossary.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
:github_url: ehrapy.api.tools.DeepL.translate_with_glossary | ||
|
||
ehrapy.api.tools.DeepL.translate\_with\_glossary | ||
================================================ | ||
|
||
.. currentmodule:: ehrapy.api.tools | ||
|
||
.. automethod:: DeepL.translate_with_glossary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
:github_url: ehrapy.api.tools.test | ||
|
||
ehrapy.api.tools.test | ||
===================== | ||
|
||
.. autofunction:: ehrapy.api.tools.test | ||
|
||
.. _sphx_glr_backref_ehrapy.api.tools.test: | ||
|
||
.. minigallery:: ehrapy.api.tools.test | ||
:add-heading: Gallery | ||
:heading-level: - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not happy with this, but required because the whole span is black elsewise and unreadable. Not sure whether this is an issue with our stuff or just the dark mode extension. Likely the extension...
@Imipenem ideas?