New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation adds whitespaces around punctuation chars #83

Closed
AdrianLC opened this Issue Apr 8, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@AdrianLC
Contributor

AdrianLC commented Apr 8, 2015

Hello,

In [1]: import textblob

In [2]: corpus = textblob.TextBlob("Hola, me llamo Adrián! Cómo estás? Yo bien")

In [3]: corpus.translate()
Out[3]: TextBlob("Hello , my name is Adrian ! How are you? I good")

Notice the space before the comma and exclamation.

Is this expected behaviour? Is there a known solution to avoid this?
(Debugging shows that the json5 comes already with the spaces.)

Thank you!

@sloria

This comment has been minimized.

Owner

sloria commented Jun 10, 2015

Fixed by #84

@sloria sloria closed this Jun 10, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment