src.features .translate_tweet

src.features. translate_tweet ( text , lang ) [source]

Translate a block of text (this function can be time consuming).

Parameters
text str

Text to be translated.

lang str

Langauge of original text

Returns
trans str

Text translated to English.