{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "![Logo 1](https://git.wmi.amu.edu.pl/AITech/Szablon/raw/branch/master/Logotyp_AITech1.jpg)\n", "
\n", "

Modelowanie Języka

\n", "

2. Język [ćwiczenia]

\n", "

Jakub Pokrywka (2022)

\n", "
\n", "\n", "![Logo 2](https://git.wmi.amu.edu.pl/AITech/Szablon/raw/branch/master/Logotyp_AITech2.jpg)" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "import random\n", "import plotly.express as px\n", "import numpy as np\n", "import pandas as pd\n", "import nltk" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "https://github.com/sdadas/polish-nlp-resources" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "program : program\n", "programs : program\n", "programmer : programm\n", "programming : program\n", "programmers : programm\n" ] } ], "source": [ "ps = nltk.stem.PorterStemmer()\n", "\n", "for w in [\"program\", \"programs\", \"programmer\", \"programming\", \"programmers\"]:\n", " print(w, \" : \", ps.stem(w))" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "[nltk_data] Downloading package punkt to /home/kuba/nltk_data...\n", "[nltk_data] Package punkt is already up-to-date!\n", "[nltk_data] Downloading package stopwords to /home/kuba/nltk_data...\n", "[nltk_data] Package stopwords is already up-to-date!\n" ] }, { "data": { "text/plain": [ "True" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "nltk.download('punkt')\n", "nltk.download('stopwords')" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "['Python',\n", " 'is',\n", " 'dynamically-typed',\n", " 'and',\n", " 'garbage-collected',\n", " '.',\n", " 'It',\n", " 'supports',\n", " 'multiple',\n", " 'programming',\n", " 'paradigms',\n", " ',',\n", " 'including',\n", " 'structured',\n", " '(',\n", " 'particularly',\n", " ',',\n", " 'procedural',\n", " ')',\n", " ',',\n", " 'object-oriented',\n", " 'and',\n", " 'functional',\n", " 'programming',\n", " '.',\n", " 'It',\n", " 'is',\n", " 'often',\n", " 'described',\n", " 'as',\n", " 'a',\n", " '``',\n", " 'batteries',\n", " 'included',\n", " \"''\",\n", " 'language',\n", " 'due',\n", " 'to',\n", " 'its',\n", " 'comprehensive',\n", " 'standard',\n", " 'library',\n", " '.']" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "text = \"\"\"Python is dynamically-typed and garbage-collected. It supports multiple programming paradigms, including structured (particularly, procedural), object-oriented and functional programming. It is often described as a \"batteries included\" language due to its comprehensive standard library.\"\"\"\n", "nltk.tokenize.word_tokenize(text)" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "['Python is dynamically-typed and garbage-collected.',\n", " 'It supports multiple programming paradigms, including structured (particularly, procedural), object-oriented and functional programming.',\n", " 'It is often described as a \"batteries included\" language due to its comprehensive standard library.']" ] }, "execution_count": 6, "metadata": {}, "output_type": "execute_result" } ], "source": [ "nltk.tokenize.sent_tokenize(text)" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "['aber',\n", " 'alle',\n", " 'allem',\n", " 'allen',\n", " 'aller',\n", " 'alles',\n", " 'als',\n", " 'also',\n", " 'am',\n", " 'an',\n", " 'ander',\n", " 'andere',\n", " 'anderem',\n", " 'anderen',\n", " 'anderer',\n", " 'anderes',\n", " 'anderm',\n", " 'andern',\n", " 'anderr',\n", " 'anders',\n", " 'auch',\n", " 'auf',\n", " 'aus',\n", " 'bei',\n", " 'bin',\n", " 'bis',\n", " 'bist',\n", " 'da',\n", " 'damit',\n", " 'dann',\n", " 'der',\n", " 'den',\n", " 'des',\n", " 'dem',\n", " 'die',\n", " 'das',\n", " 'dass',\n", " 'daß',\n", " 'derselbe',\n", " 'derselben',\n", " 'denselben',\n", " 'desselben',\n", " 'demselben',\n", " 'dieselbe',\n", " 'dieselben',\n", " 'dasselbe',\n", " 'dazu',\n", " 'dein',\n", " 'deine',\n", " 'deinem',\n", " 'deinen',\n", " 'deiner',\n", " 'deines',\n", " 'denn',\n", " 'derer',\n", " 'dessen',\n", " 'dich',\n", " 'dir',\n", " 'du',\n", " 'dies',\n", " 'diese',\n", " 'diesem',\n", " 'diesen',\n", " 'dieser',\n", " 'dieses',\n", " 'doch',\n", " 'dort',\n", " 'durch',\n", " 'ein',\n", " 'eine',\n", " 'einem',\n", " 'einen',\n", " 'einer',\n", " 'eines',\n", " 'einig',\n", " 'einige',\n", " 'einigem',\n", " 'einigen',\n", " 'einiger',\n", " 'einiges',\n", " 'einmal',\n", " 'er',\n", " 'ihn',\n", " 'ihm',\n", " 'es',\n", " 'etwas',\n", " 'euer',\n", " 'eure',\n", " 'eurem',\n", " 'euren',\n", " 'eurer',\n", " 'eures',\n", " 'für',\n", " 'gegen',\n", " 'gewesen',\n", " 'hab',\n", " 'habe',\n", " 'haben',\n", " 'hat',\n", " 'hatte',\n", " 'hatten',\n", " 'hier',\n", " 'hin',\n", " 'hinter',\n", " 'ich',\n", " 'mich',\n", " 'mir',\n", " 'ihr',\n", " 'ihre',\n", " 'ihrem',\n", " 'ihren',\n", " 'ihrer',\n", " 'ihres',\n", " 'euch',\n", " 'im',\n", " 'in',\n", " 'indem',\n", " 'ins',\n", " 'ist',\n", " 'jede',\n", " 'jedem',\n", " 'jeden',\n", " 'jeder',\n", " 'jedes',\n", " 'jene',\n", " 'jenem',\n", " 'jenen',\n", " 'jener',\n", " 'jenes',\n", " 'jetzt',\n", " 'kann',\n", " 'kein',\n", " 'keine',\n", " 'keinem',\n", " 'keinen',\n", " 'keiner',\n", " 'keines',\n", " 'können',\n", " 'könnte',\n", " 'machen',\n", " 'man',\n", " 'manche',\n", " 'manchem',\n", " 'manchen',\n", " 'mancher',\n", " 'manches',\n", " 'mein',\n", " 'meine',\n", " 'meinem',\n", " 'meinen',\n", " 'meiner',\n", " 'meines',\n", " 'mit',\n", " 'muss',\n", " 'musste',\n", " 'nach',\n", " 'nicht',\n", " 'nichts',\n", " 'noch',\n", " 'nun',\n", " 'nur',\n", " 'ob',\n", " 'oder',\n", " 'ohne',\n", " 'sehr',\n", " 'sein',\n", " 'seine',\n", " 'seinem',\n", " 'seinen',\n", " 'seiner',\n", " 'seines',\n", " 'selbst',\n", " 'sich',\n", " 'sie',\n", " 'ihnen',\n", " 'sind',\n", " 'so',\n", " 'solche',\n", " 'solchem',\n", " 'solchen',\n", " 'solcher',\n", " 'solches',\n", " 'soll',\n", " 'sollte',\n", " 'sondern',\n", " 'sonst',\n", " 'über',\n", " 'um',\n", " 'und',\n", " 'uns',\n", " 'unsere',\n", " 'unserem',\n", " 'unseren',\n", " 'unser',\n", " 'unseres',\n", " 'unter',\n", " 'viel',\n", " 'vom',\n", " 'von',\n", " 'vor',\n", " 'während',\n", " 'war',\n", " 'waren',\n", " 'warst',\n", " 'was',\n", " 'weg',\n", " 'weil',\n", " 'weiter',\n", " 'welche',\n", " 'welchem',\n", " 'welchen',\n", " 'welcher',\n", " 'welches',\n", " 'wenn',\n", " 'werde',\n", " 'werden',\n", " 'wie',\n", " 'wieder',\n", " 'will',\n", " 'wir',\n", " 'wird',\n", " 'wirst',\n", " 'wo',\n", " 'wollen',\n", " 'wollte',\n", " 'würde',\n", " 'würden',\n", " 'zu',\n", " 'zum',\n", " 'zur',\n", " 'zwar',\n", " 'zwischen']" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "nltk.corpus.stopwords.words('german')" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "[('Python', 'is'), ('is', 'dynamically-typed'), ('dynamically-typed', 'and'), ('and', 'garbage-collected'), ('garbage-collected', '.'), ('.', 'It'), ('It', 'supports'), ('supports', 'multiple'), ('multiple', 'programming'), ('programming', 'paradigms'), ('paradigms', ','), (',', 'including'), ('including', 'structured'), ('structured', '('), ('(', 'particularly'), ('particularly', ','), (',', 'procedural'), ('procedural', ')'), (')', ','), (',', 'object-oriented'), ('object-oriented', 'and'), ('and', 'functional'), ('functional', 'programming'), ('programming', '.'), ('.', 'It'), ('It', 'is'), ('is', 'often'), ('often', 'described'), ('described', 'as'), ('as', 'a'), ('a', '``'), ('``', 'batteries'), ('batteries', 'included'), ('included', \"''\"), (\"''\", 'language'), ('language', 'due'), ('due', 'to'), ('to', 'its'), ('its', 'comprehensive'), ('comprehensive', 'standard'), ('standard', 'library'), ('library', '.')]\n" ] } ], "source": [ "nltk_tokens = nltk.word_tokenize(text)\n", "print(list(nltk.bigrams(nltk_tokens)))" ] }, { "cell_type": "code", "execution_count": 9, "metadata": { "scrolled": true }, "outputs": [ { "data": { "text/html": [ " \n", " " ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "alignmentgroup": "True", "hovertemplate": "słowo=%{x}
liczba=%{y}", "legendgroup": "", "marker": { "color": "#636efa", "pattern": { "shape": "" } }, "name": "", "offsetgroup": "", "orientation": "v", "showlegend": false, "textposition": "auto", "type": "bar", "x": [ "ma", "ala", "psa", "kota" ], "xaxis": "x", "y": [ 20, 15, 10, 10 ], "yaxis": "y" } ], "layout": { "barmode": "relative", "legend": { "tracegroupgap": 0 }, "margin": { "t": 60 }, "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "sequentialminus": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "xaxis": { "anchor": "y", "domain": [ 0, 1 ], "title": { "text": "słowo" } }, "yaxis": { "anchor": "x", "domain": [ 0, 1 ], "title": { "text": "liczba" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "df = pd.DataFrame([['ma', 20], ['ala', 15], ['psa', 10], ['kota', 10]], columns=['słowo', 'liczba'])\n", "fig = px.bar(df, x=\"słowo\", y=\"liczba\")\n", "fig.show()" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "alignmentgroup": "True", "bingroup": "x", "hovertemplate": "jezyk=polski
dlugosc=%{x}
count=%{y}", "legendgroup": "", "marker": { "color": "#636efa", "pattern": { "shape": "" } }, "name": "", "nbinsx": 50, "offsetgroup": "", "orientation": "v", "showlegend": false, "type": "histogram", "x": [ 6, 3, 4, 1, 1, 7, 7, 2, 1, 6, 4, 7, 2, 2, 15, 2, 1, 3, 14, 5, 3, 11, 7, 1, 3, 1, 4, 1, 1, 1, 2, 1, 2, 7, 1, 8, 4, 1, 7, 4, 5, 10, 7, 4, 1, 4, 2, 5, 6, 8, 3, 8, 2, 3, 10, 5, 3, 8, 5, 1, 2, 3, 10, 8, 19, 10, 5, 1, 4, 7, 2, 11, 1, 2, 11, 3, 3, 5, 4, 3, 1, 1, 2, 13, 11, 2, 13, 1, 1, 7, 9, 1, 7, 1, 4, 2, 2, 3, 5, 8, 4, 2, 12, 6, 19, 7, 2, 7, 4, 9, 7, 2, 13, 19, 5, 5, 5, 8, 4, 5, 2, 2, 1, 1, 10, 3, 1, 7, 1, 3, 13, 5, 2, 4, 2, 3, 5, 2, 2, 14, 5, 4, 10, 3, 5, 5, 6, 4, 9, 2, 3, 29, 17, 12, 3, 3, 1, 1, 5,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4, 2, 3, 3, 15, 4, 9, 5, 1, 11, 3, 3, 5, 6, 1, 3, 1, 3, 5, 6, 18, 4, 6, 2, 5, 3, 3, 1, 4, 4, 4, 4, 2, 2, 12, 5, 8, 6, 1, 1, 5, 9, 1, 2, 9, 5, 1, 7, 2, 1, 2, 8, 9, 18, 4, 11, 1, 3, 2, 1, 1, 8, 4, 4, 9, 4, 9, 8, 4, 2, 8, 1, 1, 1, 7, 9, 6, 2, 3, 4, 1, 5, 1, 4, 1, 6, 5, 9, 7, 6, 3, 1, 2, 4, 2, 2, 1, 5, 1, 4, 1, 3, 1, 5, 14, 1, 1, 5, 9, 1, 4, 3 ], "xaxis": "x3", "yaxis": "y3" }, { "alignmentgroup": "True", "bingroup": "x", "hovertemplate": "jezyk=ang
dlugosc=%{x}
count=%{y}", "legendgroup": "", "marker": { "color": "#636efa", "pattern": { "shape": "" } }, "name": "", "nbinsx": 50, "offsetgroup": "", "orientation": "v", "showlegend": false, "type": "histogram", "x": [ 10, 3, 2, 1, 5, 15, 3, 2, 6, 11, 17, 5, 5, 1, 6, 9, 2, 4, 2, 2, 17, 4, 3, 3, 2, 3, 5, 13, 2, 2, 2, 5, 9, 4, 19, 3, 1, 6, 2, 5, 2, 7, 14, 1, 4, 7, 5, 12, 4, 2, 6, 1, 10, 1, 2, 3, 3, 6, 4, 5, 21, 8, 9, 1, 15, 3, 1, 2, 1, 3, 1, 1, 15, 5, 1, 2, 2, 1, 1, 1, 3, 1, 4, 1, 7, 4, 7, 11, 7, 12, 3, 1, 11, 2, 3, 1, 5, 5, 2, 2, 2, 22, 1, 2, 1, 2, 8, 7, 3, 8, 2, 3, 10, 3, 3, 9, 4, 3, 2, 1, 13, 1, 13, 1, 1, 2, 4, 8, 1, 4, 9, 1, 6, 2, 9, 2, 6, 4, 1, 5, 3, 2, 2, 9, 3, 2, 15, 1, 6, 1, 2, 1, 1, 1, 3, 2, 3, 12, 19, 7, 1, 4, 4, 11, 2, 1, 2, 3, 6, 4, 28, 7,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8, 5, 3, 4, 2, 2, 1, 1, 2, 5, 23, 6, 2, 6, 3, 3, 1, 3, 2, 3, 1, 3, 11, 6, 2, 5, 2, 19, 1, 4, 1, 1, 6, 10, 2, 4, 12, 4, 2, 7, 8, 2, 17, 37, 1, 4, 2, 7, 3, 2, 5, 4, 16, 3, 5, 1, 2, 1, 6, 9, 2, 7, 10, 4, 1, 6, 3, 6, 1, 1, 11, 1, 1, 8, 3, 2, 13, 4, 2, 3, 2, 4, 2, 7, 2, 3, 1, 10, 1, 1, 1, 2, 9, 3, 3, 2, 2, 1, 4, 18, 4, 1, 1, 2, 3, 4, 1, 6, 3, 7, 6, 1, 7, 3, 1, 3, 6, 2, 4, 9, 4, 5, 10, 1, 7, 7, 2 ], "xaxis": "x2", "yaxis": "y2" }, { "alignmentgroup": "True", "bingroup": "x", "hovertemplate": "jezyk=hiszp
dlugosc=%{x}
count=%{y}", "legendgroup": "", "marker": { "color": "#636efa", "pattern": { "shape": "" } }, "name": "", "nbinsx": 50, "offsetgroup": "", "orientation": "v", "showlegend": false, "type": "histogram", "x": [ 5, 11, 8, 5, 2, 6, 3, 2, 10, 7, 4, 12, 1, 19, 3, 9, 1, 1, 7, 5, 11, 4, 10, 10, 8, 2, 3, 8, 9, 7, 5, 2, 3, 13, 4, 14, 2, 2, 1, 1, 1, 5, 9, 3, 5, 4, 2, 1, 10, 8, 3, 2, 7, 6, 2, 11, 2, 15, 2, 2, 19, 1, 1, 3, 1, 8, 5, 5, 1, 6, 5, 13, 9, 3, 1, 3, 4, 2, 4, 8, 17, 5, 3, 1, 4, 5, 2, 5, 2, 4, 6, 1, 2, 3, 2, 10, 2, 5, 5, 9, 6, 6, 5, 6, 3, 2, 1, 3, 1, 1, 8, 3, 10, 1, 1, 9, 4, 1, 1, 2, 1, 6, 4, 3, 1, 6, 1, 8, 1, 2, 8, 7, 14, 3, 3, 4, 3, 3, 6, 1, 4, 3, 2, 4, 16, 5, 14, 6, 1, 4, 6, 1, 3, 6, 1, 3, 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, 3, 7, 3, 7, 2, 1, 1, 2, 1, 6, 3, 4, 1, 2, 6, 2, 11, 6, 1, 5, 14, 2, 12, 3, 14, 2, 2, 10, 2, 8, 5, 2, 11, 2, 17, 1, 6, 2, 3, 2, 2, 5, 2, 5, 6, 3, 2, 5, 5, 4, 4, 6, 4, 6, 3, 2, 2, 8, 1, 1, 2, 8, 2, 13, 19, 7, 4, 7, 2, 6, 10, 2, 6, 17, 4, 11, 2, 1, 4, 9, 4, 14, 1, 4, 2, 5, 13, 2, 4, 4, 1, 2, 1, 2, 6, 5, 2, 7, 2, 1, 10, 2, 1, 3, 3, 5, 6, 4, 10, 3, 4, 2, 2, 31, 5, 5, 2, 1, 8, 5, 7, 1, 4, 4, 4, 1, 1, 9, 11, 3, 1, 8, 1, 14, 7, 8, 2, 3, 7, 3, 2, 1, 9, 1, 5, 3, 6, 5, 1, 2, 5, 3, 4, 7, 29, 4, 1, 3, 3, 3, 3, 1, 5, 1, 1, 12, 2, 13, 13, 5, 1, 7, 2, 8, 2, 3, 1, 4 ], "xaxis": "x", "yaxis": "y" } ], "layout": { "annotations": [ { "font": {}, "showarrow": false, "text": "jezyk=hiszp", "textangle": 90, "x": 0.98, "xanchor": "left", "xref": "paper", "y": 0.15666666666666665, "yanchor": "middle", "yref": "paper" }, { "font": {}, "showarrow": false, "text": "jezyk=ang", "textangle": 90, "x": 0.98, "xanchor": "left", "xref": "paper", "y": 0.4999999999999999, "yanchor": "middle", "yref": "paper" }, { "font": {}, "showarrow": false, "text": "jezyk=polski", "textangle": 90, "x": 0.98, "xanchor": "left", "xref": "paper", "y": 0.8433333333333332, "yanchor": "middle", "yref": "paper" } ], "barmode": "relative", "legend": { "tracegroupgap": 0 }, "margin": { "t": 60 }, "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "sequentialminus": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "xaxis": { "anchor": "y", "domain": [ 0, 0.98 ], "title": { "text": "dlugosc" } }, "xaxis2": { "anchor": "y2", "domain": [ 0, 0.98 ], "matches": "x", "showticklabels": false }, "xaxis3": { "anchor": "y3", "domain": [ 0, 0.98 ], "matches": "x", "showticklabels": false }, "yaxis": { "anchor": "x", "domain": [ 0, 0.3133333333333333 ], "title": { "text": "count" } }, "yaxis2": { "anchor": "x2", "domain": [ 0.34333333333333327, 0.6566666666666665 ], "matches": "y", "title": { "text": "count" } }, "yaxis3": { "anchor": "x3", "domain": [ 0.6866666666666665, 0.9999999999999998 ], "matches": "y", "title": { "text": "count" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "df = pd.DataFrame([[random.choice(['ang','polski','hiszp']), np.random.geometric(0.2)] for i in range(5000) ], columns=['jezyk', 'dlugosc'])\n", "fig = px.histogram(df, x=\"dlugosc\",facet_row='jezyk',nbins=50, hover_data=df.columns)\n", "fig.show()" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [], "source": [ "?px.histogram" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## ZADANIE 1 \n", "\n", "(40 punktów)\n", "\n", "ZNAJDŹ PRZYKŁAD TEKSTÓW Z TEJ SAMEJ DOMENY 1_000_000 słów albo nawet tłumaczenie :\n", "- język angielski \n", "- język polski\n", "- język z rodziny romańskich\n", "\n", "Proponowane narzędzia:\n", "- nltk\n", "- plotly express\n", "- biblioteka collections\n", "- spacy (niekoniecznie)\n", "\n", "\n", "Dla każdego z języków:\n", "- policz ilosć unikalnych lowercase słów (ze stemmingiem i bez)\n", "- policz ilosć znaków\n", "- policz ilosć unikalnych znaków\n", "- policz ilosć zdań zdań\n", "- policz ilosć unikalnych zdań\n", "- podaj min, max, średnią oraz medianę ilości znaków w słowie \n", "- podaj min, max, średnią oraz medianę ilości słów w zdaniu, znajdz najkrotsze i najdluzsze zdania\n", "- wygeneruj word cloud (normalnie i po usunięciu stopwordów)\n", "- wypisz 20 najbardziej popularnych słów (normalnie i po usunięciu stopwordów) (lowercase)\n", "- wypisz 20 najbardziej popularnych bigramów (normalnie i po usunięciu stopwordów)\n", "- narysuj wykres częstotliwości słów (histogram lub linie) w taki sposób żeby był czytelny, wypróbuj skali logarytmicznej dla osi x (ale na razie nie dla y), usuwanie słów poniżej limitu wystąpień itp.\n", "- punkt jak wyżej, tylko dla bigramów\n", "- punkt jak wyżej, tylko dla znaków\n", "- narysuj wykres barplot dla części mowy (PART OF SPEECH TAGS, tylko pierwszy stopień zagłębienia)\n", "- dla próbki 10000 zdań sprawdź jak często langdetect https://pypi.org/project/langdetect/ się myli i w jaki sposób.\n", "- zilustruj prawo zipfa ( px.line z zaznaczonymi punktami)\n", "- napisz wnioski (10-50 zdań)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### START ZADANIA" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### KONIEC ZADANIA" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## ZADANIE 2\n", "\n", "(30 punktów)\n", "\n", "Znajdź teksty w języku polskim (mają składać sie po 5 osobnych dokumentów każdy, długości powinny być różne):\n", "- tekst prawny\n", "- tekst naukowy\n", "- tekst z polskiego z powieści (np. wolne lektury)\n", "- tekst z polskiego internetu (reddit, wykop, komentarze)\n", "- transkrypcja tekstu mówionego\n", "\n", "\n", "\n", "ZADANIA:\n", "- zilustruj gunning fog index (oś y) i średnią długość zdania (oś x) na jednym wykresie dla wszystkich tekstów, domeny oznacz kolorami (px.scatter), dla języka polskiego traktuj wyrazy długie jako te powyżej 3 sylab, możesz użyć https://pyphen.org/ do liczenia sylab\n", "- zilustruj prawo Heaps'a dla wszystkich tekstów na jednym wykresie, domeny oznacz kolorami (px.scatter)\n", "- napisz wnioski (10-50 zdań)\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### START ZADANIA" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### KONIEC ZADANIA" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## WYKONANIE ZADAŃ\n", "Zgodnie z instrukcją 01_Kodowanie_tekstu.ipynb" ] } ], "metadata": { "author": "Jakub Pokrywka", "email": "kubapok@wmi.amu.edu.pl", "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "lang": "pl", "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.3" }, "subtitle": "0.Informacje na temat przedmiotu[ćwiczenia]", "title": "Ekstrakcja informacji", "year": "2021" }, "nbformat": 4, "nbformat_minor": 4 }