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

Update Azure Translation component to handle large amounts of text #1264

Closed
jrobble opened this issue Feb 22, 2021 · 0 comments
Closed

Update Azure Translation component to handle large amounts of text #1264

jrobble opened this issue Feb 22, 2021 · 0 comments
Assignees
Milestone

Comments

@jrobble
Copy link
Member

jrobble commented Feb 22, 2021

Currently a user to running into this error:

{
    "source": "AZURETRANSLATION",
    "code": "DETECTION_FAILED",
    "message": "An error occurred while invoking the \"get_detections_from_generic\" method on the Python component: ('Request failed with HTTP status 400 and message: {\"error\":{\"code\":400077,\"message\":\"The maximum request size has been exceeded.\"}}', <DetectionError.DETECTION_FAILED: 15>)"
}

The issue is that the text is over 50,000 characters, which is the limit for /breaksentence. The error occurred when the request submitted to Azure had over 80,000 characters.

The user is attempting to translate a 26-page Word doc. Part of the issue relates to determining which characters (if any) denote a line break so that the text can be split up meaningfully.

@jrobble jrobble added this to the Milestone 1 milestone Feb 22, 2021
@jrobble jrobble added this to To do in OpenMPF: Development via automation Feb 22, 2021
@jrobble jrobble moved this from To do to Planned in OpenMPF: Development Feb 22, 2021
@jrobble jrobble moved this from Planned to In Progress in OpenMPF: Development Feb 22, 2021
@jrobble jrobble moved this from In Progress to Testing in OpenMPF: Development Mar 1, 2021
@jrobble jrobble closed this as completed May 14, 2021
OpenMPF: Development automation moved this from Testing to Closed May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants