Giter VIP home page Giter VIP logo

deepl-java's People

Contributors

daniel-jones-dev avatar dependabot[bot] avatar janebbing avatar paranoiduser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deepl-java's Issues

deepl-java-0.2.1 and gson

Hello,
Thanks for the 0.2.1 version.
I'm integrating your library 0.2.1 in a maven project and here is what I notice :

  • the you cite in the README works but does not automatically include a dependency to gson, which needs to be included by hand with another .
  • deepl-java-0.2.1 doesn't work with last version of gson (2.9.1). I make it work with gson 2.8.5, already used by deepl-java-0.2.0
    Thierry

Remove unused dependency

Hello, I've been using this library for a while now, and I noticed that in my shadowed jar, there were assets for the library org.apache.commons:commons-math3. Out of curiosity, I checked the source code to see how it is used, but nowhere in the code the library is actually used.
Is it possible to remove it from the dependencies ?

Handling of the request size

Hi people,

I've played a bit with the library and found a couple of inconveniences.

The obvious - if you pass a big text to translate, it is impossible to guess when you will get an error response that the size of the request is over the limit. I know it is 128k but the headers and other data are probably included in the calculation. As the client, I need help determining when to split the data.

About glossary management

There seems to be no implementation of glossary management, is there any plan to implement it in the future?
Or is it possible to make a contribution?

openapi has it.

SentenceSplittingMode.All ignored

As per-title, the only place reading the SentenceSplittingMode ignores the All value, which is useful when setting the tag handing to html.

&& options.getSentenceSplittingMode() != SentenceSplittingMode.All) {

Maybe it's because the default has changed since november 2022 as stated in https://www.deepl.com/docs-api/translate-text/translate-text/:

The use of nonewlines as the default value for text translations where tag_handling=html is new behavior that was implemented in November 2022, when HTML handling was moved out of beta.

I have tried to request a translation through a curl request for the same input and the result is just fine.

[Question] Structured document translate

It is probably nothing to the java library but a general DeepL translation question.

At the weekend, I tried to translate a bunch of strings and composed one big text to make fewer requests. The format of the string was:

<hash of the string to translate>######<text to tranlsate>^^^^^^^
......

That worked for some strings. However, DeepL returned a different integer for some hashes or even appended some strings.
That, of course, broke the whole algorithm.

What do you think about how to handle such a translation? Would DeepL ignore an integer from translation if it is part of XML, for example

<tr hash="!hash of string to translate!">!string for the translation!</tr>
...

Do you have any recommendations or thoughts?

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.