Skip to content

Result is blank for large text input #8

@shriramters

Description

@shriramters

When large text input is provided (which splits into multiple batches), request->response.target.text is blank (from kotki.cpp)

This is because the translate function in kotki.cpp calls generateBatch and translateBatch only once. If the input text is large enough to create more segments than can fit in a single batch, the remaining segments are left in the BatchingPool and are never translated.

The final translated text is only constructed by the ResponseBuilder when all segments of a request have been processed. Since only a partial set of segments are translated, the condition to build the final response is never met, and request->response.target.text remains empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions