Skip to content

Commit 4eca1a1

Browse files
1 parent 4eb6101 commit 4eca1a1

118 files changed

Lines changed: 267 additions & 265 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: 05301d2e27b0b98310fa50989c2cd1e9
3+
config: a8e172d742bbfa8b60f32443819730a2
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 7db158d documentation</title>
8+
<title>Overview: module code &mdash; PyThaiNLP 0c21974 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=35c06163"></script>
17+
<script src="../_static/documentation_options.js?v=c1e7d435"></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 7db158d documentation</title>
8+
<title>pythainlp.ancient.aksonhan &mdash; PyThaiNLP 0c21974 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=35c06163"></script>
17+
<script src="../../../_static/documentation_options.js?v=c1e7d435"></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 7db158d documentation</title>
8+
<title>pythainlp.ancient.currency &mdash; PyThaiNLP 0c21974 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=35c06163"></script>
17+
<script src="../../../_static/documentation_options.js?v=c1e7d435"></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/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 7db158d documentation</title>
8+
<title>pythainlp.coref.core &mdash; PyThaiNLP 0c21974 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=35c06163"></script>
17+
<script src="../../../_static/documentation_options.js?v=c1e7d435"></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: 7 additions & 5 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 7db158d documentation</title>
8+
<title>pythainlp.corpus.common &mdash; PyThaiNLP 0c21974 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=35c06163"></script>
17+
<script src="../../../_static/documentation_options.js?v=c1e7d435"></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>
@@ -122,7 +122,7 @@ <h1>Source code for pythainlp.corpus.common</h1><div class="highlight"><pre>
122122
<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>
123123

124124
<span class="k">if</span> <span class="n">TYPE_CHECKING</span><span class="p">:</span>
125-
<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>
125+
<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">Any</span><span class="p">,</span> <span class="n">Union</span>
126126

127127
<span class="n">__all__</span> <span class="o">=</span> <span class="p">[</span>
128128
<span class="s2">&quot;countries&quot;</span><span class="p">,</span>
@@ -534,10 +534,12 @@ <h1>Source code for pythainlp.corpus.common</h1><div class="highlight"><pre>
534534
<span class="sd"> # output: [&#39;จรุก&#39;, &#39;วราหะ&#39;, &#39;วราห์&#39;, &#39;ศูกร&#39;, &#39;สุกร&#39;]</span>
535535
<span class="sd"> &quot;&quot;&quot;</span>
536536
<span class="n">synonyms</span> <span class="o">=</span> <span class="n">thai_synonyms</span><span class="p">()</span> <span class="c1"># get a dictionary of {word, synonym}</span>
537-
<span class="n">list_synonym</span> <span class="o">=</span> <span class="p">[]</span>
537+
<span class="n">list_synonym</span><span class="p">:</span> <span class="nb">list</span><span class="p">[</span><span class="n">Any</span><span class="p">]</span> <span class="o">=</span> <span class="p">[]</span>
538538

539539
<span class="k">if</span> <span class="n">word</span> <span class="ow">in</span> <span class="n">synonyms</span><span class="p">[</span><span class="s2">&quot;word&quot;</span><span class="p">]:</span> <span class="c1"># find by word</span>
540-
<span class="n">list_synonym</span><span class="o">.</span><span class="n">extend</span><span class="p">(</span><span class="n">synonyms</span><span class="p">[</span><span class="s2">&quot;synonym&quot;</span><span class="p">][</span><span class="n">synonyms</span><span class="p">[</span><span class="s2">&quot;word&quot;</span><span class="p">]</span><span class="o">.</span><span class="n">index</span><span class="p">(</span><span class="n">word</span><span class="p">)])</span>
540+
<span class="n">word_list</span> <span class="o">=</span> <span class="n">synonyms</span><span class="p">[</span><span class="s2">&quot;word&quot;</span><span class="p">]</span>
541+
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">word_list</span><span class="p">,</span> <span class="nb">list</span><span class="p">):</span>
542+
<span class="n">list_synonym</span><span class="o">.</span><span class="n">extend</span><span class="p">(</span><span class="n">synonyms</span><span class="p">[</span><span class="s2">&quot;synonym&quot;</span><span class="p">][</span><span class="n">word_list</span><span class="o">.</span><span class="n">index</span><span class="p">(</span><span class="n">word</span><span class="p">)])</span> <span class="c1"># type: ignore[arg-type]</span>
541543

542544
<span class="k">for</span> <span class="n">idx</span><span class="p">,</span> <span class="n">words</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">synonyms</span><span class="p">[</span><span class="s2">&quot;synonym&quot;</span><span class="p">]):</span> <span class="c1"># find by synonym</span>
543545
<span class="k">if</span> <span class="n">word</span> <span class="ow">in</span> <span class="n">words</span><span class="p">:</span>

0 commit comments

Comments
 (0)