diff options
Diffstat (limited to 'notebooks/03-look-at-iam-lines.ipynb')
-rw-r--r-- | notebooks/03-look-at-iam-lines.ipynb | 139 |
1 files changed, 0 insertions, 139 deletions
diff --git a/notebooks/03-look-at-iam-lines.ipynb b/notebooks/03-look-at-iam-lines.ipynb index 9e9b24c..049a8b6 100644 --- a/notebooks/03-look-at-iam-lines.ipynb +++ b/notebooks/03-look-at-iam-lines.ipynb @@ -134,39 +134,6 @@ }, { "cell_type": "code", - "execution_count": 22, - "metadata": { - "tags": [] - }, - "outputs": [ - { - "data": { - "text/plain": [ - "(tensor([[[0., 0., 0., ..., 0., 0., 0.],\n", - " [0., 0., 0., ..., 0., 0., 0.],\n", - " [0., 0., 0., ..., 0., 0., 0.],\n", - " ...,\n", - " [0., 0., 0., ..., 0., 0., 0.],\n", - " [0., 0., 0., ..., 0., 0., 0.],\n", - " [0., 0., 0., ..., 0., 0., 0.]]]),\n", - " tensor([ 1, 32, 27, 14, 33, 16, 21, 22, 27, 20, 40, 14, 33, 40, 33, 21, 18, 40,\n", - " 29, 31, 28, 29, 40, 21, 28, 25, 17, 22, 27, 20, 40, 33, 21, 18, 40, 15,\n", - " 14, 31, 20, 18, 45, 32, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,\n", - " 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,\n", - " 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]))" - ] - }, - "execution_count": 22, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "datamodule.data_val[16]" - ] - }, - { - "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ @@ -190,112 +157,6 @@ }, { "cell_type": "code", - "execution_count": 15, - "metadata": { - "tags": [] - }, - "outputs": [ - { - "data": { - "text/plain": [ - "['<b>',\n", - " '<s>',\n", - " '<e>',\n", - " '<p>',\n", - " '0',\n", - " '1',\n", - " '2',\n", - " '3',\n", - " '4',\n", - " '5',\n", - " '6',\n", - " '7',\n", - " '8',\n", - " '9',\n", - " 'a',\n", - " 'b',\n", - " 'c',\n", - " 'd',\n", - " 'e',\n", - " 'f',\n", - " 'g',\n", - " 'h',\n", - " 'i',\n", - " 'j',\n", - " 'k',\n", - " 'l',\n", - " 'm',\n", - " 'n',\n", - " 'o',\n", - " 'p',\n", - " 'q',\n", - " 'r',\n", - " 's',\n", - " 't',\n", - " 'u',\n", - " 'v',\n", - " 'w',\n", - " 'x',\n", - " 'y',\n", - " 'z',\n", - " ' ',\n", - " '!',\n", - " '\"',\n", - " '#',\n", - " '&',\n", - " \"'\",\n", - " '(',\n", - " ')',\n", - " '*',\n", - " '+',\n", - " ',',\n", - " '-',\n", - " '.',\n", - " '/',\n", - " ':',\n", - " ';',\n", - " '?',\n", - " '\\n']" - ] - }, - "execution_count": 15, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "datamodule.tokenizer.mapping" - ] - }, - { - "cell_type": "code", - "execution_count": 11, - "metadata": { - "tags": [] - }, - "outputs": [ - { - "data": { - "text/plain": [ - "tensor([ 1, 34, 27, 22, 28, 27, 40, 36, 28, 34, 25, 17, 40, 15, 18, 40, 29, 31,\n", - " 18, 29, 14, 31, 18, 17, 40, 33, 28, 40, 31, 18, 14, 16, 21, 2, 3, 3,\n", - " 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,\n", - " 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,\n", - " 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3])" - ] - }, - "execution_count": 11, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "x =dataset[0][1]\n", - "x[" - ] - }, - { - "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ |