Skip to content

Commit 6880313

Browse files
1 parent f5b6ad4 commit 6880313

114 files changed

Lines changed: 320 additions & 286 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 3d5e07daf9e61cbdfa98f16d7c5b17c9
3+
config: 9e94737bce85c570b5e4f3b17693575a
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

_modules/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
<head>
66
<meta charset="utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>Overview: module code &mdash; PyThaiNLP 9e6520b documentation</title>
8+
<title>Overview: module code &mdash; PyThaiNLP e4c6f6b documentation</title>
99
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=03e43079" />
1010
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=9edc463e" />
1111
<link rel="stylesheet" type="text/css" href="../_static/style.css?v=eea1f72d" />
1212

1313

1414
<script src="../_static/jquery.js?v=5d32c60e"></script>
1515
<script src="../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
16-
<script src="../_static/documentation_options.js?v=0eca0768"></script>
16+
<script src="../_static/documentation_options.js?v=94c332c4"></script>
1717
<script src="../_static/doctools.js?v=9bcbadda"></script>
1818
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
1919
<script src="../_static/js/theme.js"></script>

_modules/pythainlp/ancient/aksonhan.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
<head>
66
<meta charset="utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>pythainlp.ancient.aksonhan &mdash; PyThaiNLP 9e6520b documentation</title>
8+
<title>pythainlp.ancient.aksonhan &mdash; PyThaiNLP e4c6f6b documentation</title>
99
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=03e43079" />
1010
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=9edc463e" />
1111
<link rel="stylesheet" type="text/css" href="../../../_static/style.css?v=eea1f72d" />
1212

1313

1414
<script src="../../../_static/jquery.js?v=5d32c60e"></script>
1515
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
16-
<script src="../../../_static/documentation_options.js?v=0eca0768"></script>
16+
<script src="../../../_static/documentation_options.js?v=94c332c4"></script>
1717
<script src="../../../_static/doctools.js?v=9bcbadda"></script>
1818
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
1919
<script src="../../../_static/js/theme.js"></script>

_modules/pythainlp/ancient/currency.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
<head>
66
<meta charset="utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>pythainlp.ancient.currency &mdash; PyThaiNLP 9e6520b documentation</title>
8+
<title>pythainlp.ancient.currency &mdash; PyThaiNLP e4c6f6b documentation</title>
99
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=03e43079" />
1010
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=9edc463e" />
1111
<link rel="stylesheet" type="text/css" href="../../../_static/style.css?v=eea1f72d" />
1212

1313

1414
<script src="../../../_static/jquery.js?v=5d32c60e"></script>
1515
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
16-
<script src="../../../_static/documentation_options.js?v=0eca0768"></script>
16+
<script src="../../../_static/documentation_options.js?v=94c332c4"></script>
1717
<script src="../../../_static/doctools.js?v=9bcbadda"></script>
1818
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
1919
<script src="../../../_static/js/theme.js"></script>

_modules/pythainlp/coref/core.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
<head>
66
<meta charset="utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>pythainlp.coref.core &mdash; PyThaiNLP 9e6520b documentation</title>
8+
<title>pythainlp.coref.core &mdash; PyThaiNLP e4c6f6b documentation</title>
99
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=03e43079" />
1010
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=9edc463e" />
1111
<link rel="stylesheet" type="text/css" href="../../../_static/style.css?v=eea1f72d" />
1212

1313

1414
<script src="../../../_static/jquery.js?v=5d32c60e"></script>
1515
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
16-
<script src="../../../_static/documentation_options.js?v=0eca0768"></script>
16+
<script src="../../../_static/documentation_options.js?v=94c332c4"></script>
1717
<script src="../../../_static/doctools.js?v=9bcbadda"></script>
1818
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
1919
<script src="../../../_static/js/theme.js"></script>

_modules/pythainlp/corpus/common.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
<head>
66
<meta charset="utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>pythainlp.corpus.common &mdash; PyThaiNLP 9e6520b documentation</title>
8+
<title>pythainlp.corpus.common &mdash; PyThaiNLP e4c6f6b documentation</title>
99
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=03e43079" />
1010
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=9edc463e" />
1111
<link rel="stylesheet" type="text/css" href="../../../_static/style.css?v=eea1f72d" />
1212

1313

1414
<script src="../../../_static/jquery.js?v=5d32c60e"></script>
1515
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
16-
<script src="../../../_static/documentation_options.js?v=0eca0768"></script>
16+
<script src="../../../_static/documentation_options.js?v=94c332c4"></script>
1717
<script src="../../../_static/doctools.js?v=9bcbadda"></script>
1818
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
1919
<script src="../../../_static/js/theme.js"></script>
@@ -116,6 +116,7 @@ <h1>Source code for pythainlp.corpus.common</h1><div class="highlight"><pre>
116116
<span class="kn">from</span><span class="w"> </span><span class="nn">__future__</span><span class="w"> </span><span class="kn">import</span> <span class="n">annotations</span>
117117

118118
<span class="kn">import</span><span class="w"> </span><span class="nn">ast</span>
119+
<span class="kn">from</span><span class="w"> </span><span class="nn">typing</span><span class="w"> </span><span class="kn">import</span> <span class="n">Union</span>
119120

120121
<span class="n">__all__</span> <span class="o">=</span> <span class="p">[</span>
121122
<span class="s2">&quot;countries&quot;</span><span class="p">,</span>
@@ -195,7 +196,7 @@ <h1>Source code for pythainlp.corpus.common</h1><div class="highlight"><pre>
195196

196197
<div class="viewcode-block" id="provinces">
197198
<a class="viewcode-back" href="../../../api/corpus.html#pythainlp.corpus.provinces">[docs]</a>
198-
<span class="k">def</span><span class="w"> </span><span class="nf">provinces</span><span class="p">(</span><span class="n">details</span><span class="p">:</span> <span class="nb">bool</span> <span class="o">=</span> <span class="kc">False</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">frozenset</span><span class="p">[</span><span class="nb">str</span><span class="p">]</span> <span class="o">|</span> <span class="nb">list</span><span class="p">[</span><span class="nb">dict</span><span class="p">]:</span>
199+
<span class="k">def</span><span class="w"> </span><span class="nf">provinces</span><span class="p">(</span><span class="n">details</span><span class="p">:</span> <span class="nb">bool</span> <span class="o">=</span> <span class="kc">False</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Union</span><span class="p">[</span><span class="nb">frozenset</span><span class="p">[</span><span class="nb">str</span><span class="p">],</span> <span class="nb">list</span><span class="p">[</span><span class="nb">dict</span><span class="p">]]:</span>
199200
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Return a frozenset of Thailand province names in Thai such as &quot;กระบี่&quot;,</span>
200201
<span class="sd"> &quot;กรุงเทพมหานคร&quot;, &quot;กาญจนบุรี&quot;, and &quot;อุบลราชธานี&quot;.</span>
201202
<span class="sd"> \n(See: `dev/pythainlp/corpus/thailand_provinces_th.txt\</span>

_modules/pythainlp/corpus/core.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
<head>
66
<meta charset="utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>pythainlp.corpus.core &mdash; PyThaiNLP 9e6520b documentation</title>
8+
<title>pythainlp.corpus.core &mdash; PyThaiNLP e4c6f6b documentation</title>
99
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=03e43079" />
1010
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=9edc463e" />
1111
<link rel="stylesheet" type="text/css" href="../../../_static/style.css?v=eea1f72d" />
1212

1313

1414
<script src="../../../_static/jquery.js?v=5d32c60e"></script>
1515
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
16-
<script src="../../../_static/documentation_options.js?v=0eca0768"></script>
16+
<script src="../../../_static/documentation_options.js?v=94c332c4"></script>
1717
<script src="../../../_static/doctools.js?v=9bcbadda"></script>
1818
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
1919
<script src="../../../_static/js/theme.js"></script>
@@ -120,6 +120,7 @@ <h1>Source code for pythainlp.corpus.core</h1><div class="highlight"><pre>
120120
<span class="kn">import</span><span class="w"> </span><span class="nn">tarfile</span>
121121
<span class="kn">import</span><span class="w"> </span><span class="nn">zipfile</span>
122122
<span class="kn">from</span><span class="w"> </span><span class="nn">importlib.resources</span><span class="w"> </span><span class="kn">import</span> <span class="n">files</span>
123+
<span class="kn">from</span><span class="w"> </span><span class="nn">typing</span><span class="w"> </span><span class="kn">import</span> <span class="n">Optional</span>
123124

124125
<span class="kn">from</span><span class="w"> </span><span class="nn">pythainlp</span><span class="w"> </span><span class="kn">import</span> <span class="n">__version__</span>
125126
<span class="kn">from</span><span class="w"> </span><span class="nn">pythainlp.corpus</span><span class="w"> </span><span class="kn">import</span> <span class="n">corpus_db_path</span><span class="p">,</span> <span class="n">corpus_db_url</span><span class="p">,</span> <span class="n">corpus_path</span>
@@ -328,7 +329,7 @@ <h1>Source code for pythainlp.corpus.core</h1><div class="highlight"><pre>
328329

329330
<div class="viewcode-block" id="get_corpus_default_db">
330331
<a class="viewcode-back" href="../../../api/corpus.html#pythainlp.corpus.get_corpus_default_db">[docs]</a>
331-
<span class="k">def</span><span class="w"> </span><span class="nf">get_corpus_default_db</span><span class="p">(</span><span class="n">name</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">version</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s2">&quot;&quot;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span> <span class="o">|</span> <span class="kc">None</span><span class="p">:</span>
332+
<span class="k">def</span><span class="w"> </span><span class="nf">get_corpus_default_db</span><span class="p">(</span><span class="n">name</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">version</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s2">&quot;&quot;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">str</span><span class="p">]:</span>
332333
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Get model path from default_db.json</span>
333334

334335
<span class="sd"> :param str name: corpus name</span>
@@ -361,7 +362,7 @@ <h1>Source code for pythainlp.corpus.core</h1><div class="highlight"><pre>
361362

362363
<div class="viewcode-block" id="get_corpus_path">
363364
<a class="viewcode-back" href="../../../api/corpus.html#pythainlp.corpus.get_corpus_path">[docs]</a>
364-
<span class="k">def</span><span class="w"> </span><span class="nf">get_corpus_path</span><span class="p">(</span><span class="n">name</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">version</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s2">&quot;&quot;</span><span class="p">,</span> <span class="n">force</span><span class="p">:</span> <span class="nb">bool</span> <span class="o">=</span> <span class="kc">False</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span> <span class="o">|</span> <span class="kc">None</span><span class="p">:</span>
365+
<span class="k">def</span><span class="w"> </span><span class="nf">get_corpus_path</span><span class="p">(</span><span class="n">name</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">version</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s2">&quot;&quot;</span><span class="p">,</span> <span class="n">force</span><span class="p">:</span> <span class="nb">bool</span> <span class="o">=</span> <span class="kc">False</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">str</span><span class="p">]:</span>
365366
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Get corpus path.</span>
366367

367368
<span class="sd"> :param str name: corpus name</span>

_modules/pythainlp/corpus/oscar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
<head>
66
<meta charset="utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>pythainlp.corpus.oscar &mdash; PyThaiNLP 9e6520b documentation</title>
8+
<title>pythainlp.corpus.oscar &mdash; PyThaiNLP e4c6f6b documentation</title>
99
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=03e43079" />
1010
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=9edc463e" />
1111
<link rel="stylesheet" type="text/css" href="../../../_static/style.css?v=eea1f72d" />
1212

1313

1414
<script src="../../../_static/jquery.js?v=5d32c60e"></script>
1515
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
16-
<script src="../../../_static/documentation_options.js?v=0eca0768"></script>
16+
<script src="../../../_static/documentation_options.js?v=94c332c4"></script>
1717
<script src="../../../_static/doctools.js?v=9bcbadda"></script>
1818
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
1919
<script src="../../../_static/js/theme.js"></script>

_modules/pythainlp/corpus/th_en_translit.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
<head>
66
<meta charset="utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>pythainlp.corpus.th_en_translit &mdash; PyThaiNLP 9e6520b documentation</title>
8+
<title>pythainlp.corpus.th_en_translit &mdash; PyThaiNLP e4c6f6b documentation</title>
99
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=03e43079" />
1010
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=9edc463e" />
1111
<link rel="stylesheet" type="text/css" href="../../../_static/style.css?v=eea1f72d" />
1212

1313

1414
<script src="../../../_static/jquery.js?v=5d32c60e"></script>
1515
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
16-
<script src="../../../_static/documentation_options.js?v=0eca0768"></script>
16+
<script src="../../../_static/documentation_options.js?v=94c332c4"></script>
1717
<script src="../../../_static/doctools.js?v=9bcbadda"></script>
1818
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
1919
<script src="../../../_static/js/theme.js"></script>

_modules/pythainlp/corpus/tnc.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
<head>
66
<meta charset="utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>pythainlp.corpus.tnc &mdash; PyThaiNLP 9e6520b documentation</title>
8+
<title>pythainlp.corpus.tnc &mdash; PyThaiNLP e4c6f6b documentation</title>
99
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=03e43079" />
1010
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=9edc463e" />
1111
<link rel="stylesheet" type="text/css" href="../../../_static/style.css?v=eea1f72d" />
1212

1313

1414
<script src="../../../_static/jquery.js?v=5d32c60e"></script>
1515
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
16-
<script src="../../../_static/documentation_options.js?v=0eca0768"></script>
16+
<script src="../../../_static/documentation_options.js?v=94c332c4"></script>
1717
<script src="../../../_static/doctools.js?v=9bcbadda"></script>
1818
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
1919
<script src="../../../_static/js/theme.js"></script>

0 commit comments

Comments
 (0)