forked from theopenconversationkit/tock
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
theopenconversationkit#1606 Add Deepl translator module - first set o…
…f corrections
- Loading branch information
charles_moulhaud
committed
Jul 9, 2024
1 parent
ed3d5d2
commit f8815e2
Showing
6 changed files
with
78 additions
and
63 deletions.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Module for translation with Deepl | ||
Here are the configurable variables: | ||
|
||
- tock_translator_deepl_target_languages : set of supported languages - ex : en,es | ||
- tock_translator_deepl_api_url : Deepl api url (default https://api.deepl.com/v2/translate) | ||
- tock_translator_deepl_api_key : Deepl api key to use (see your account) | ||
- tock_translator_deepl_glossaryId: glossary identifier to use in translation | ||
|
||
deepl decoumentation: https://developers.deepl.com/docs | ||
|
||
To integrate the module into a custom Tock Admin, pass the module as a parameter to the ai.tock.nlp.admin.startAdminServer() function. | ||
|
||
Example: | ||
|
||
package ai.tock.bot.admin | ||
|
||
import ai.tock.nlp.admin.startAdminServer | ||
import ai.tock.translator.deepl.deeplTranslatorModule | ||
|
||
fun main() { | ||
startAdminServer(deeplTranslatorModule) | ||
} |
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 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 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 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 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