Giter Club home page Giter Club logo

Comments (3)

UlionTse avatar UlionTse commented on May 18, 2024

@Senjar Generally speaking, the total number of words in each translation should not exceed 5000. A good batch partition of the article needs to consider translating more content at one time as much as possible, the integrity of the sentence itself in the partition area, and the integrity of the context in the partition area, but this is not what the library is going to do.

from translators.

Senjar avatar Senjar commented on May 18, 2024

What I'm trying to do is translate a list of sentences that are not related. I can combine them all up in a single string but then I can't split them back after the translation. I tried putting custom delimiters but sometimes they are lost for some reason in the translated text.

from translators.

UlionTse avatar UlionTse commented on May 18, 2024

@Senjar Just like what you need, your current method is an efficient one. Maybe you just need to understand what delimiter is in the to_language context after translation in the from_langauge context. Another way is to translate a single sentence directly without merging. In this way, concurrency should be considered and the frequency of requests should be paid attention to. In addition, the third way is to use is_detail_result=True, there will be surprises.

from translators.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.