Skip to content

Commit

Permalink
deploy: 8b3923a
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 14, 2023
1 parent 4ddf33b commit 7f4cf1b
Show file tree
Hide file tree
Showing 22 changed files with 606 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .buildinfo
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: f8a02a193d77ad0271510c066cdf2dc8
config: c43a1304059a43cdf360266050e687f9
tags: 645f666f9bcd5a90fca523b33c5a78b7
167 changes: 167 additions & 0 deletions _sources/notebooks/find_all_thai_rhyming_words.ipynb
@@ -0,0 +1,167 @@
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": []
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"cell_type": "markdown",
"source": [
"# Find all Thai rhyming words from Thai word\n",
"\n"
],
"metadata": {
"id": "K9ODYQZM4GAN"
}
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "s3hYEQjP2J_e",
"outputId": "74d31fda-c63e-4512-d127-fd65c22c36a3"
},
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Requirement already satisfied: pythainlp in /usr/local/lib/python3.10/dist-packages (4.1.0b4)\n",
"Requirement already satisfied: requests>=2.22.0 in /usr/local/lib/python3.10/dist-packages (from pythainlp) (2.31.0)\n",
"Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests>=2.22.0->pythainlp) (3.2.0)\n",
"Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests>=2.22.0->pythainlp) (3.4)\n",
"Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests>=2.22.0->pythainlp) (2.0.4)\n",
"Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests>=2.22.0->pythainlp) (2023.7.22)\n",
"Collecting python-crfsuite\n",
" Downloading python_crfsuite-0.9.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (993 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m993.5/993.5 kB\u001b[0m \u001b[31m6.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hInstalling collected packages: python-crfsuite\n",
"Successfully installed python-crfsuite-0.9.9\n"
]
}
],
"source": [
"!pip install --pre pythainlp\n",
"!pip install python-crfsuite"
]
},
{
"cell_type": "code",
"source": [
"from pythainlp.corpus import thai_words\n",
"from pythainlp.tokenize import syllable_tokenize"
],
"metadata": {
"id": "-RnAwSB62Nd9"
},
"execution_count": 16,
"outputs": []
},
{
"cell_type": "code",
"source": [
"all_thai_words_dict = [i for i in list(thai_words()) if len(syllable_tokenize(i))==1]"
],
"metadata": {
"id": "KJpJyT-T2RsT"
},
"execution_count": 17,
"outputs": []
},
{
"cell_type": "code",
"source": [
"from pythainlp.khavee import KhaveeVerifier\n",
"kv = KhaveeVerifier()"
],
"metadata": {
"id": "2eBgB7KI2d_v"
},
"execution_count": 18,
"outputs": []
},
{
"cell_type": "code",
"source": [
"all_thai_words_dict[0]"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 35
},
"id": "R2NSwqxT25vh",
"outputId": "570f4407-4741-42e9-8f07-e322189df2ab"
},
"execution_count": 19,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"'เทอญ'"
],
"application/vnd.google.colaboratory.intrinsic+json": {
"type": "string"
}
},
"metadata": {},
"execution_count": 19
}
]
},
{
"cell_type": "code",
"source": [
"word=\"จีบ\"\n",
"list_sumpus=[]\n",
"for i in all_thai_words_dict:\n",
" try:\n",
" if kv.is_sumpus(word,i) and i!=word:\n",
" list_sumpus.append(i)\n",
" except:\n",
" pass\n",
"print(list_sumpus)"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "uu3fCa8Z2lGR",
"outputId": "53dd7ed0-e9c6-487f-c9e2-f1159ac31e27"
},
"execution_count": 21,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"['กลีบ', 'อีฟ', 'ถีบ', 'รีฟ', 'ตีบ', 'ชีพ', 'หลีบ', 'บีบ', 'ตี้บ', 'ลีบ', 'ทวีป', 'งีบ', 'หีบ', 'คีบ', 'ปี๊บ', 'หนีบ', 'รีบ', 'ทีป', 'จี๊ป', 'ปีบ', 'ครีบ', 'กีบ']\n"
]
}
]
},
{
"cell_type": "code",
"source": [],
"metadata": {
"id": "mbqluTsh23HF"
},
"execution_count": null,
"outputs": []
}
]
}
2 changes: 1 addition & 1 deletion _static/documentation_options.js
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: 'thai2plot-9-gfed039b',
VERSION: 'thai2plot-10-g8b3923a',
LANGUAGE: 'en',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
3 changes: 2 additions & 1 deletion genindex.html
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Index &mdash; pythainlp-tutorials thai2plot-9-gfed039b documentation</title>
<title>Index &mdash; pythainlp-tutorials thai2plot-10-g8b3923a documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/style.css" type="text/css" />
Expand Down Expand Up @@ -45,6 +45,7 @@
<p class="caption" role="heading"><span class="caption-text">Tutorials:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="notebooks/Thai_Dependency_Parser.html">Thai Dependency Parser</a></li>
<li class="toctree-l1"><a class="reference internal" href="notebooks/find_all_thai_rhyming_words.html">Find all Thai rhyming words from Thai word</a></li>
<li class="toctree-l1"><a class="reference internal" href="notebooks/machine_translation.html">PyThaiNLP Translate</a></li>
<li class="toctree-l1"><a class="reference internal" href="notebooks/nlpo3ipynb.html">nlpO3</a></li>
<li class="toctree-l1"><a class="reference internal" href="notebooks/pythainlp_chunk.html">Thai Chunk Parser</a></li>
Expand Down
4 changes: 3 additions & 1 deletion index.html
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Welcome to PyThaiNLP Tutorials &mdash; pythainlp-tutorials thai2plot-9-gfed039b documentation</title>
<title>Welcome to PyThaiNLP Tutorials &mdash; pythainlp-tutorials thai2plot-10-g8b3923a documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/style.css" type="text/css" />
Expand Down Expand Up @@ -47,6 +47,7 @@
<p class="caption" role="heading"><span class="caption-text">Tutorials:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="notebooks/Thai_Dependency_Parser.html">Thai Dependency Parser</a></li>
<li class="toctree-l1"><a class="reference internal" href="notebooks/find_all_thai_rhyming_words.html">Find all Thai rhyming words from Thai word</a></li>
<li class="toctree-l1"><a class="reference internal" href="notebooks/machine_translation.html">PyThaiNLP Translate</a></li>
<li class="toctree-l1"><a class="reference internal" href="notebooks/nlpo3ipynb.html">nlpO3</a></li>
<li class="toctree-l1"><a class="reference internal" href="notebooks/pythainlp_chunk.html">Thai Chunk Parser</a></li>
Expand Down Expand Up @@ -91,6 +92,7 @@ <h1>Welcome to PyThaiNLP Tutorials<a class="headerlink" href="#welcome-to-pythai
<p class="caption" role="heading"><span class="caption-text">Tutorials:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="notebooks/Thai_Dependency_Parser.html">Thai Dependency Parser</a></li>
<li class="toctree-l1"><a class="reference internal" href="notebooks/find_all_thai_rhyming_words.html">Find all Thai rhyming words from Thai word</a></li>
<li class="toctree-l1"><a class="reference internal" href="notebooks/machine_translation.html">PyThaiNLP Translate</a></li>
<li class="toctree-l1"><a class="reference internal" href="notebooks/nlpo3ipynb.html">nlpO3</a></li>
<li class="toctree-l1"><a class="reference internal" href="notebooks/pythainlp_chunk.html">Thai Chunk Parser</a></li>
Expand Down
7 changes: 4 additions & 3 deletions notebooks/Thai_Dependency_Parser.html
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Thai Dependency Parser &mdash; pythainlp-tutorials thai2plot-9-gfed039b documentation</title>
<title>Thai Dependency Parser &mdash; pythainlp-tutorials thai2plot-10-g8b3923a documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../_static/nbsphinx-code-cells.css" type="text/css" />
Expand All @@ -25,7 +25,7 @@
<script src="../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="PyThaiNLP Translate" href="machine_translation.html" />
<link rel="next" title="Find all Thai rhyming words from Thai word" href="find_all_thai_rhyming_words.html" />
<link rel="prev" title="Welcome to PyThaiNLP Tutorials" href="../index.html" />
</head>

Expand All @@ -51,6 +51,7 @@
<p class="caption" role="heading"><span class="caption-text">Tutorials:</span></p>
<ul class="current">
<li class="toctree-l1 current"><a class="current reference internal" href="#">Thai Dependency Parser</a></li>
<li class="toctree-l1"><a class="reference internal" href="find_all_thai_rhyming_words.html">Find all Thai rhyming words from Thai word</a></li>
<li class="toctree-l1"><a class="reference internal" href="machine_translation.html">PyThaiNLP Translate</a></li>
<li class="toctree-l1"><a class="reference internal" href="nlpo3ipynb.html">nlpO3</a></li>
<li class="toctree-l1"><a class="reference internal" href="pythainlp_chunk.html">Thai Chunk Parser</a></li>
Expand Down Expand Up @@ -205,7 +206,7 @@ <h1>Thai Dependency Parser<a class="headerlink" href="#Thai-Dependency-Parser" t
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="../index.html" class="btn btn-neutral float-left" title="Welcome to PyThaiNLP Tutorials" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="machine_translation.html" class="btn btn-neutral float-right" title="PyThaiNLP Translate" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
<a href="find_all_thai_rhyming_words.html" class="btn btn-neutral float-right" title="Find all Thai rhyming words from Thai word" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>

<hr/>
Expand Down

0 comments on commit 7f4cf1b

Please sign in to comment.