Skip to content

Commit

Permalink
Fix googletrans AttributeError (falloutdurham#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusFra committed Mar 29, 2021
1 parent 3942c3b commit c4117d3
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion chapter5/Chapter 5.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,15 @@
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Install googletrans version 3.1.0a0 (temporary fix for #57)\n",
"!pip install googletrans==3.1.0a0"
]
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"import googletrans\n",
"import random\n",
Expand All @@ -411,7 +420,13 @@
"translations_en_random = translator.translate(t_text, src=tr_lang, dest='en')\n",
"en_text = [t.text for t in translations_en_random]\n",
"print(en_text)"
]
],
"metadata": {
"collapsed": false,
"pycharm": {
"name": "#%%\n"
}
}
},
{
"cell_type": "code",
Expand Down

0 comments on commit c4117d3

Please sign in to comment.