"Sentence: b\"Already, at his shoulder's hollow mail\"\n",
"Label: 0\n",
"Sentence: b'So she have pity on the Trojan state,'\n",
"Label: 1\n",
"Sentence: b'gathered the reins in his hand, and Antenor took his seat beside him;'\n",
"Label: 2\n",
"Sentence: b'To fury, mingling with the host of Troy.'\n",
"Label: 0\n",
"Sentence: b'have been indulging their spleen and holding aloof from battle'\n",
"Label: 2\n",
"Sentence: b'Their courage rousing, and imparting strength.'\n",
"Label: 1\n",
"Sentence: b'Argos, and Sparta. Them, when next thy wrath'\n",
"Label: 0\n",
"Sentence: b'(The son of Lampus he, the prince of men,'\n",
"Label: 1\n",
"Sentence: b'and hewn, with his feet to the door, and his comrades are mourning'\n",
"Label: 2\n",
"Sentence: b'descends for that purpose, and in the form of Laodocus, a son of'\n",
"Label: 0\n"
]
}
],
"source": [
"for text, label in all_labeled_data.take(10):\n",
" print(\"Sentence: \", text.numpy())\n",
" print(\"Label:\", label.numpy())"
],
"metadata": {
"collapsed": false,
"pycharm": {
"name": "#%%\n"
}
}
},
{
"cell_type": "code",
"execution_count": 11,
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"WARNING:tensorflow:From /home/mao/anaconda3/envs/tf2.5/lib/python3.6/site-packages/tensorflow/python/util/dispatch.py:206: batch_gather (from tensorflow.python.ops.array_ops) is deprecated and will be removed after 2017-10-25.\n",
"Instructions for updating:\n",
"`tf.batch_gather` is deprecated, please use `tf.gather` with `batch_dims=-1` instead.\n"