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

Context Consideration in DEEPL API Translation: Sentences Separated by '\n' #76

Closed
hoonlight opened this issue Jul 22, 2023 · 1 comment

Comments

@hoonlight
Copy link

hoonlight commented Jul 22, 2023

Hi,
When translating with the DEEPL API, does it take into account the context between sentences separated by "\n"?
Or are they treated as separate paragraphs?

@hoonlight hoonlight changed the title "Context Consideration in DEEPL API Translation: Sentences Separated by '\n'" Context Consideration in DEEPL API Translation: Sentences Separated by '\n' Jul 22, 2023
@JanEbbing
Copy link
Member

Hi @archive-r , yes the context is taken into account between newlines.
A simple example:

$ poetry run python -m deepl text --source-lang 'PT' --target-lang 'DE' "Compreia no ikea."
Ich würde es bei Ikea kaufen.

(I would buy it -neutral- from Ikea)

poetry run python -m deepl text --source-lang 'PT' --target-lang 'DE' "A cadeira é vermelha.
Compreia no Ikea."
Der Stuhl ist rot.
Ich habe ihn bei Ikea gekauft.

(The chair is red. I would buy it -correctly gendered- from Ikea)

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

2 participants