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 DeepL translation #108

Merged
merged 20 commits into from
Oct 7, 2021
Merged
Prev Previous commit
Next Next commit
add DeepL to docs
Signed-off-by: zethson <lukas.heumos@posteo.net>
Zethson committed Oct 6, 2021
commit b3199c1ef3236076c68aea41c90cd7a750e51868
4 changes: 4 additions & 0 deletions docs/_static/custom_cookietemple.css
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 {
Copy link
Member Author

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?

color:#007dce;
}
8 changes: 8 additions & 0 deletions docs/tools/ehrapy.api.tools.DeepL.authenticate.rst
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
8 changes: 8 additions & 0 deletions docs/tools/ehrapy.api.tools.DeepL.create_glossary.rst
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
8 changes: 8 additions & 0 deletions docs/tools/ehrapy.api.tools.DeepL.print_source_languages.rst
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
8 changes: 8 additions & 0 deletions docs/tools/ehrapy.api.tools.DeepL.print_target_languages.rst
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
38 changes: 38 additions & 0 deletions docs/tools/ehrapy.api.tools.DeepL.rst
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: -
8 changes: 8 additions & 0 deletions docs/tools/ehrapy.api.tools.DeepL.translate_X_column.rst
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
8 changes: 8 additions & 0 deletions docs/tools/ehrapy.api.tools.DeepL.translate_document.rst
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
8 changes: 8 additions & 0 deletions docs/tools/ehrapy.api.tools.DeepL.translate_obs_column.rst
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
8 changes: 8 additions & 0 deletions docs/tools/ehrapy.api.tools.DeepL.translate_text.rst
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
8 changes: 8 additions & 0 deletions docs/tools/ehrapy.api.tools.DeepL.translate_var_column.rst
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 docs/tools/ehrapy.api.tools.DeepL.translate_with_glossary.rst
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
12 changes: 12 additions & 0 deletions docs/tools/ehrapy.api.tools.test.rst
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: -
18 changes: 6 additions & 12 deletions docs/usage.rst
Original file line number Diff line number Diff line change
@@ -62,25 +62,19 @@ Preprocessing
Tools
~~~~~

.. automodule:: ehrapy.api.tools
:members:
.. currentmodule:: ehrapy.api

.. autosummary::
:toctree: tools

tools.DeepL

Plotting
~~~~~~~~

.. automodule:: ehrapy.api.plot
:members:

Util
~~~~~

.. currentmodule:: ehrapy.api

.. autosummary::
:toctree: util

util.adata_type_overview

Command-line interface
-----------------------

12 changes: 0 additions & 12 deletions docs/util/ehrapy.api.util.adata_type_overview.rst

This file was deleted.