Skip to content

Commit b2a5a05

Browse files
1 parent 706aa6a commit b2a5a05

122 files changed

Lines changed: 411 additions & 322 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: a02598358ecc49363131ff980e05a609
3+
config: c524e835eb2963112e7908a000df8005
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

_modules/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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 2e0acf8 documentation</title>
8+
<title>Overview: module code &mdash; PyThaiNLP 59541d6 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/copybutton.css?v=76b2166b" />
@@ -14,7 +14,7 @@
1414

1515
<script src="../_static/jquery.js?v=5d32c60e"></script>
1616
<script src="../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
17-
<script src="../_static/documentation_options.js?v=04cc7e5f"></script>
17+
<script src="../_static/documentation_options.js?v=a1fe5eb8"></script>
1818
<script src="../_static/doctools.js?v=fd6eb6e6"></script>
1919
<script src="../_static/sphinx_highlight.js?v=6ffebe34"></script>
2020
<script src="../_static/clipboard.min.js?v=a7894cd8"></script>

_modules/pythainlp/ancient/aksonhan.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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 2e0acf8 documentation</title>
8+
<title>pythainlp.ancient.aksonhan &mdash; PyThaiNLP 59541d6 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/copybutton.css?v=76b2166b" />
@@ -14,7 +14,7 @@
1414

1515
<script src="../../../_static/jquery.js?v=5d32c60e"></script>
1616
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
17-
<script src="../../../_static/documentation_options.js?v=04cc7e5f"></script>
17+
<script src="../../../_static/documentation_options.js?v=a1fe5eb8"></script>
1818
<script src="../../../_static/doctools.js?v=fd6eb6e6"></script>
1919
<script src="../../../_static/sphinx_highlight.js?v=6ffebe34"></script>
2020
<script src="../../../_static/clipboard.min.js?v=a7894cd8"></script>

_modules/pythainlp/ancient/currency.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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 2e0acf8 documentation</title>
8+
<title>pythainlp.ancient.currency &mdash; PyThaiNLP 59541d6 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/copybutton.css?v=76b2166b" />
@@ -14,7 +14,7 @@
1414

1515
<script src="../../../_static/jquery.js?v=5d32c60e"></script>
1616
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
17-
<script src="../../../_static/documentation_options.js?v=04cc7e5f"></script>
17+
<script src="../../../_static/documentation_options.js?v=a1fe5eb8"></script>
1818
<script src="../../../_static/doctools.js?v=fd6eb6e6"></script>
1919
<script src="../../../_static/sphinx_highlight.js?v=6ffebe34"></script>
2020
<script src="../../../_static/clipboard.min.js?v=a7894cd8"></script>

_modules/pythainlp/benchmarks/word_tokenization.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<head>
66
<meta charset="utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>pythainlp.benchmarks.word_tokenization &mdash; PyThaiNLP 2e0acf8 documentation</title>
8+
<title>pythainlp.benchmarks.word_tokenization &mdash; PyThaiNLP 59541d6 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/copybutton.css?v=76b2166b" />
@@ -14,7 +14,7 @@
1414

1515
<script src="../../../_static/jquery.js?v=5d32c60e"></script>
1616
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
17-
<script src="../../../_static/documentation_options.js?v=04cc7e5f"></script>
17+
<script src="../../../_static/documentation_options.js?v=a1fe5eb8"></script>
1818
<script src="../../../_static/doctools.js?v=fd6eb6e6"></script>
1919
<script src="../../../_static/sphinx_highlight.js?v=6ffebe34"></script>
2020
<script src="../../../_static/clipboard.min.js?v=a7894cd8"></script>

_modules/pythainlp/chat/core.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<head>
66
<meta charset="utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>pythainlp.chat.core &mdash; PyThaiNLP 2e0acf8 documentation</title>
8+
<title>pythainlp.chat.core &mdash; PyThaiNLP 59541d6 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/copybutton.css?v=76b2166b" />
@@ -14,7 +14,7 @@
1414

1515
<script src="../../../_static/jquery.js?v=5d32c60e"></script>
1616
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
17-
<script src="../../../_static/documentation_options.js?v=04cc7e5f"></script>
17+
<script src="../../../_static/documentation_options.js?v=a1fe5eb8"></script>
1818
<script src="../../../_static/doctools.js?v=fd6eb6e6"></script>
1919
<script src="../../../_static/sphinx_highlight.js?v=6ffebe34"></script>
2020
<script src="../../../_static/clipboard.min.js?v=a7894cd8"></script>
@@ -114,7 +114,7 @@ <h1>Source code for pythainlp.chat.core</h1><div class="highlight"><pre>
114114
<span class="c1"># SPDX-License-Identifier: Apache-2.0</span>
115115
<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>
116116

117-
<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">TYPE_CHECKING</span><span class="p">,</span> <span class="n">Any</span><span class="p">,</span> <span class="n">Optional</span>
117+
<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">TYPE_CHECKING</span><span class="p">,</span> <span class="n">Any</span><span class="p">,</span> <span class="n">Optional</span><span class="p">,</span> <span class="n">cast</span>
118118

119119
<span class="k">if</span> <span class="n">TYPE_CHECKING</span><span class="p">:</span>
120120
<span class="kn">import</span><span class="w"> </span><span class="nn">torch</span>
@@ -219,7 +219,7 @@ <h1>Source code for pythainlp.chat.core</h1><div class="highlight"><pre>
219219
<span class="n">_temp</span> <span class="o">+=</span> <span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="o">.</span><span class="n">PROMPT_DICT</span><span class="p">[</span><span class="s2">&quot;prompt_chatbot&quot;</span><span class="p">]</span><span class="o">.</span><span class="n">format_map</span><span class="p">(</span>
220220
<span class="p">{</span><span class="s2">&quot;human&quot;</span><span class="p">:</span> <span class="n">text</span><span class="p">,</span> <span class="s2">&quot;bot&quot;</span><span class="p">:</span> <span class="s2">&quot;&quot;</span><span class="p">}</span>
221221
<span class="p">)</span>
222-
<span class="n">_bot</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="o">.</span><span class="n">gen_instruct</span><span class="p">(</span><span class="n">_temp</span><span class="p">)</span>
222+
<span class="n">_bot</span> <span class="o">=</span> <span class="n">cast</span><span class="p">(</span><span class="nb">str</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="o">.</span><span class="n">gen_instruct</span><span class="p">(</span><span class="n">_temp</span><span class="p">))</span>
223223
<span class="bp">self</span><span class="o">.</span><span class="n">history</span><span class="o">.</span><span class="n">append</span><span class="p">((</span><span class="n">text</span><span class="p">,</span> <span class="n">_bot</span><span class="p">))</span>
224224
<span class="k">return</span> <span class="n">_bot</span></div>
225225
</div>

_modules/pythainlp/classify/param_free.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<head>
66
<meta charset="utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>pythainlp.classify.param_free &mdash; PyThaiNLP 2e0acf8 documentation</title>
8+
<title>pythainlp.classify.param_free &mdash; PyThaiNLP 59541d6 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/copybutton.css?v=76b2166b" />
@@ -14,7 +14,7 @@
1414

1515
<script src="../../../_static/jquery.js?v=5d32c60e"></script>
1616
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
17-
<script src="../../../_static/documentation_options.js?v=04cc7e5f"></script>
17+
<script src="../../../_static/documentation_options.js?v=a1fe5eb8"></script>
1818
<script src="../../../_static/doctools.js?v=fd6eb6e6"></script>
1919
<script src="../../../_static/sphinx_highlight.js?v=6ffebe34"></script>
2020
<script src="../../../_static/clipboard.min.js?v=a7894cd8"></script>
@@ -240,7 +240,9 @@ <h1>Source code for pythainlp.classify.param_free</h1><div class="highlight"><pr
240240
<span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">path</span><span class="p">,</span> <span class="s2">&quot;r&quot;</span><span class="p">,</span> <span class="n">encoding</span><span class="o">=</span><span class="s2">&quot;utf-8&quot;</span><span class="p">)</span> <span class="k">as</span> <span class="n">f</span><span class="p">:</span>
241241
<span class="n">data</span> <span class="o">=</span> <span class="n">json</span><span class="o">.</span><span class="n">load</span><span class="p">(</span><span class="n">f</span><span class="p">)</span>
242242
<span class="bp">self</span><span class="o">.</span><span class="n">cx2_list</span><span class="p">:</span> <span class="nb">list</span><span class="p">[</span><span class="nb">int</span><span class="p">]</span> <span class="o">=</span> <span class="n">data</span><span class="p">[</span><span class="s2">&quot;cx2_list&quot;</span><span class="p">]</span>
243-
<span class="bp">self</span><span class="o">.</span><span class="n">training_data</span><span class="p">:</span> <span class="s2">&quot;NDArray[Any]&quot;</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">data</span><span class="p">[</span><span class="s2">&quot;training_data&quot;</span><span class="p">])</span></div>
243+
<span class="bp">self</span><span class="o">.</span><span class="n">training_data</span><span class="p">:</span> <span class="s2">&quot;NDArray[Any]&quot;</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span>
244+
<span class="n">data</span><span class="p">[</span><span class="s2">&quot;training_data&quot;</span><span class="p">]</span>
245+
<span class="p">)</span></div>
244246
</div>
245247

246248
</pre></div>

_modules/pythainlp/coref/core.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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 2e0acf8 documentation</title>
8+
<title>pythainlp.coref.core &mdash; PyThaiNLP 59541d6 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/copybutton.css?v=76b2166b" />
@@ -14,7 +14,7 @@
1414

1515
<script src="../../../_static/jquery.js?v=5d32c60e"></script>
1616
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
17-
<script src="../../../_static/documentation_options.js?v=04cc7e5f"></script>
17+
<script src="../../../_static/documentation_options.js?v=a1fe5eb8"></script>
1818
<script src="../../../_static/doctools.js?v=fd6eb6e6"></script>
1919
<script src="../../../_static/sphinx_highlight.js?v=6ffebe34"></script>
2020
<script src="../../../_static/clipboard.min.js?v=a7894cd8"></script>

_modules/pythainlp/corpus/common.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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 2e0acf8 documentation</title>
8+
<title>pythainlp.corpus.common &mdash; PyThaiNLP 59541d6 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/copybutton.css?v=76b2166b" />
@@ -14,7 +14,7 @@
1414

1515
<script src="../../../_static/jquery.js?v=5d32c60e"></script>
1616
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
17-
<script src="../../../_static/documentation_options.js?v=04cc7e5f"></script>
17+
<script src="../../../_static/documentation_options.js?v=a1fe5eb8"></script>
1818
<script src="../../../_static/doctools.js?v=fd6eb6e6"></script>
1919
<script src="../../../_static/sphinx_highlight.js?v=6ffebe34"></script>
2020
<script src="../../../_static/clipboard.min.js?v=a7894cd8"></script>

_modules/pythainlp/corpus/core.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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 2e0acf8 documentation</title>
8+
<title>pythainlp.corpus.core &mdash; PyThaiNLP 59541d6 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/copybutton.css?v=76b2166b" />
@@ -14,7 +14,7 @@
1414

1515
<script src="../../../_static/jquery.js?v=5d32c60e"></script>
1616
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
17-
<script src="../../../_static/documentation_options.js?v=04cc7e5f"></script>
17+
<script src="../../../_static/documentation_options.js?v=a1fe5eb8"></script>
1818
<script src="../../../_static/doctools.js?v=fd6eb6e6"></script>
1919
<script src="../../../_static/sphinx_highlight.js?v=6ffebe34"></script>
2020
<script src="../../../_static/clipboard.min.js?v=a7894cd8"></script>

0 commit comments

Comments
 (0)