May 4, 2011

Deepl API using loads of chars? | CyberSEO Pro | Support Forum

Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_TopicIcon
Deepl API using loads of chars?
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
September 18, 2023
6:45 pm
Avatar
ndkseo
New Member
Members
Forum Posts: 2
Member Since:
July 17, 2023
sp_UserOfflineSmall Offline

I tried the deepl api to translate some feeds into Swedish but a 800 word article used 30k Deepl API chars. Seems loads and will get expensive if translating several articles a day, I thought it would use something like 7-8 chars per word on average. Any idea if its some bug or if its correct?

September 18, 2023
6:59 pm
Avatar
CyberSEO
Admin
Forum Posts: 3909
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

When translating an article, you should be aware that you are translating the following parts of the article

  1. The post title.
  2. The post content.
  3. The post excerpt.

Also, don't forget that you're translating the HTML pages, not just the raw text, since you want the translated page with the original formatting, right? So apparently DeepL counts all the HTML tags and their elements as words. E.g.:

Login to see the code

September 18, 2023
7:58 pm
Avatar
ndkseo
New Member
Members
Forum Posts: 2
Member Since:
July 17, 2023
sp_UserOfflineSmall Offline

Thanks, yea thats what I thought, that's not viable unfortunately, your plugn is still nice though will use it with openai instead for swedish info articles.

September 19, 2023
10:17 am
Avatar
CyberSEO
Admin
Forum Posts: 3909
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

It's not a flaw in the plugin, it's the way DeepL works. You can reduce the number of processed words.

1. You can limit the size of post excerpts.

Login to see this link

2. You can remove HMTL tags from your post excerpts and use %post_content_notags% and %post_excerpt_notags% instead of %post_content% and %post_excerpt% shortcode in your post templates.

Login to see this link

3. You can combine all these methods, like using and %post_content_notags% and %post_excerpt_notags[50]% in your post templates.

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 541

Currently Online:
15 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ninja321: 84

s.baryshev.aoasp: 68

Freedom: 61

Pandermos: 54

MediFormatica: 49

B8europe: 48

Member Stats:

Guest Posters: 337

Members: 2816

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 5

Topics: 1625

Posts: 8271

Newest Members:

jeremyboucher, lthompson2709, MAC, duty3canada, backlinkmorocco, dmitrypehovskiwork

Administrators: CyberSEO: 3909