Comments (1)
@gdillo
Hello friend. In order to solve your problem, we first need to figure out what causes the spaces
to disappear. There are two reasons. The first is the preprocessing of the translated text. I did perform a strip
operation in order to accurately count the length of the input text, avoid translation errors, and improve translation efficiency. The second is, that even if I don't preprocess the space strip
, will the translation service itself perform the same processing, causing the translated text to be missing meaningless spaces
?
Therefore, it is recommended that you handle the issue of spaces
separately from the translation service.
from translators.
Related Issues (20)
- [Feature]: Return the chosen language (handy when using 'auto') HOT 2
- [Bug]: "The `query_text` can't be empty!" in translate_html HOT 1
- [Bug]: workaround of consent.google.com doesn't work anymore HOT 11
- [Feature]: Translation services (eg Bing) easily rate limited HOT 1
- [Bug]: translator server - google: language map is empty so getting error "Unsupported from_language[ar] in []" HOT 24
- [Bug]: Python 3 doesn't like re with Positive Lookbehind ? HOT 2
- [Bug]: KeyError: 'data' when using baidu HOT 2
- [Bug]: "Using region <name> server backend." printed on stdout HOT 1
- [Feature]: Georgian language HOT 1
- [Bug]: Misleading error message HOT 1
- [Bug]: iciba not working now HOT 2
- [Feature]: 统一所有翻译器的源语言代码和目标语言代码 HOT 2
- [Bug]: Unable to find server backend. HOT 1
- [Bug]: crash HOT 3
- [Bug]: The function baidu() has been not certified yet HOT 3
- [Bug]: 504 Server Error: Gateway Time-out for url: https://aidemo.youdao.com/trans HOT 2
- [Bug]: TypeError: 'NoneType' object is not subscriptable HOT 3
- [Bug]: 对省略号翻译的时候就会发生一些错误 HOT 5
- [Bug]: KeyError: 'target' HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from translators.