Skip to content

Commit 2be3536

Browse files
1 parent 6037df0 commit 2be3536

131 files changed

Lines changed: 603 additions & 493 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: ec9225bd84bdce459aa102e4c9ae9842
3+
config: af5ba443f98455851e3de020b40c753b
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 1b55f4f documentation</title>
8+
<title>Overview: module code &mdash; PyThaiNLP 8a557df 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=fb955f81"></script>
17+
<script src="../_static/documentation_options.js?v=aeb3639f"></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 1b55f4f documentation</title>
8+
<title>pythainlp.ancient.aksonhan &mdash; PyThaiNLP 8a557df 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=fb955f81"></script>
17+
<script src="../../../_static/documentation_options.js?v=aeb3639f"></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: 6 additions & 6 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 1b55f4f documentation</title>
8+
<title>pythainlp.ancient.currency &mdash; PyThaiNLP 8a557df 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=fb955f81"></script>
17+
<script src="../../../_static/documentation_options.js?v=aeb3639f"></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>
@@ -119,7 +119,7 @@ <h1>Source code for pythainlp.ancient.currency</h1><div class="highlight"><pre>
119119

120120
<div class="viewcode-block" id="convert_currency">
121121
<a class="viewcode-back" href="../../../api/ancient.html#pythainlp.ancient.convert_currency">[docs]</a>
122-
<span class="k">def</span><span class="w"> </span><span class="nf">convert_currency</span><span class="p">(</span><span class="n">value</span><span class="p">:</span> <span class="nb">float</span><span class="p">,</span> <span class="n">from_unit</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">dict</span><span class="p">:</span>
122+
<span class="k">def</span><span class="w"> </span><span class="nf">convert_currency</span><span class="p">(</span><span class="n">value</span><span class="p">:</span> <span class="nb">float</span><span class="p">,</span> <span class="n">from_unit</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">dict</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="nb">float</span><span class="p">]:</span>
123123
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Convert ancient Thai currency to other units</span>
124124

125125
<span class="sd"> * เบี้ย (Bia)</span>
@@ -138,7 +138,7 @@ <h1>Source code for pythainlp.ancient.currency</h1><div class="highlight"><pre>
138138
<span class="sd"> :param str from_unit: currency unit \</span>
139139
<span class="sd"> (&#39;เบี้ย&#39;, &#39;อัฐ&#39;, &#39;ไพ&#39;, &#39;เฟื้อง&#39;, &#39;สลึง&#39;, &#39;บาท&#39;, &#39;ตำลึง&#39;, &#39;ชั่ง&#39;)</span>
140140
<span class="sd"> :return: Thai currency</span>
141-
<span class="sd"> :rtype: dict</span>
141+
<span class="sd"> :rtype: dict[str, float]</span>
142142

143143
<span class="sd"> :Example:</span>
144144
<span class="sd"> ::</span>
@@ -178,8 +178,8 @@ <h1>Source code for pythainlp.ancient.currency</h1><div class="highlight"><pre>
178178
<span class="c1"># start from &#39;อัฐ&#39;</span>
179179
<span class="n">value_in_att</span> <span class="o">=</span> <span class="n">value</span> <span class="o">*</span> <span class="n">conversion_factors_to_att</span><span class="p">[</span><span class="n">from_unit</span><span class="p">]</span>
180180

181-
<span class="c1"># Calculate values ​​in other units</span>
182-
<span class="n">results</span> <span class="o">=</span> <span class="p">{}</span>
181+
<span class="c1"># Calculate values in other units</span>
182+
<span class="n">results</span><span class="p">:</span> <span class="nb">dict</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="nb">float</span><span class="p">]</span> <span class="o">=</span> <span class="p">{}</span>
183183
<span class="k">for</span> <span class="n">unit</span><span class="p">,</span> <span class="n">factor</span> <span class="ow">in</span> <span class="n">conversion_factors_to_att</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
184184
<span class="n">results</span><span class="p">[</span><span class="n">unit</span><span class="p">]</span> <span class="o">=</span> <span class="n">value_in_att</span> <span class="o">/</span> <span class="n">factor</span>
185185

_modules/pythainlp/benchmarks/metrics.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.metrics &mdash; PyThaiNLP 1b55f4f documentation</title>
8+
<title>pythainlp.benchmarks.metrics &mdash; PyThaiNLP 8a557df 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=fb955f81"></script>
17+
<script src="../../../_static/documentation_options.js?v=aeb3639f"></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)