Skip to content

Commit 1393088

Browse files
1 parent 2a47d95 commit 1393088

111 files changed

Lines changed: 225 additions & 224 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: eff0dbdeb7b31358a5d60e708d1e0b6b
3+
config: 1f394c9566430d0447b60b1436ccf6e6
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 341499e documentation</title>
8+
<title>Overview: module code &mdash; PyThaiNLP 0beadd8 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=e59714d7" />
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=bb420ec2"></script>
16+
<script src="../_static/documentation_options.js?v=890cbf12"></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 341499e documentation</title>
8+
<title>pythainlp.ancient.aksonhan &mdash; PyThaiNLP 0beadd8 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=e59714d7" />
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=bb420ec2"></script>
16+
<script src="../../../_static/documentation_options.js?v=890cbf12"></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 341499e documentation</title>
8+
<title>pythainlp.ancient.currency &mdash; PyThaiNLP 0beadd8 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=e59714d7" />
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=bb420ec2"></script>
16+
<script src="../../../_static/documentation_options.js?v=890cbf12"></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 341499e documentation</title>
8+
<title>pythainlp.coref.core &mdash; PyThaiNLP 0beadd8 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=e59714d7" />
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=bb420ec2"></script>
16+
<script src="../../../_static/documentation_options.js?v=890cbf12"></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: 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.common &mdash; PyThaiNLP 341499e documentation</title>
8+
<title>pythainlp.corpus.common &mdash; PyThaiNLP 0beadd8 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=e59714d7" />
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=bb420ec2"></script>
16+
<script src="../../../_static/documentation_options.js?v=890cbf12"></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/core.html

Lines changed: 6 additions & 5 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 341499e documentation</title>
8+
<title>pythainlp.corpus.core &mdash; PyThaiNLP 0beadd8 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=e59714d7" />
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=bb420ec2"></script>
16+
<script src="../../../_static/documentation_options.js?v=890cbf12"></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>
@@ -788,12 +788,13 @@ <h1>Source code for pythainlp.corpus.core</h1><div class="highlight"><pre>
788788
<span class="k">return</span> <span class="n">safe_name</span>
789789

790790

791-
<span class="k">def</span><span class="w"> </span><span class="nf">get_hf_hub</span><span class="p">(</span><span class="n">repo_id</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">filename</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="kc">None</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
791+
<span class="k">def</span><span class="w"> </span><span class="nf">get_hf_hub</span><span class="p">(</span><span class="n">repo_id</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">filename</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="p">:</span>
792792
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
793793
<span class="sd"> HuggingFace Hub in :mod:`pythainlp` data directory.</span>
794794

795795
<span class="sd"> :param str repo_id: repo_id</span>
796-
<span class="sd"> :param str filename: filename</span>
796+
<span class="sd"> :param str filename: filename (optional, default is empty string).</span>
797+
<span class="sd"> If empty, downloads entire snapshot.</span>
797798
<span class="sd"> :return: path</span>
798799
<span class="sd"> :rtype: str</span>
799800
<span class="sd"> &quot;&quot;&quot;</span>
@@ -809,7 +810,7 @@ <h1>Source code for pythainlp.corpus.core</h1><div class="highlight"><pre>
809810
<span class="n">hf_root</span> <span class="o">=</span> <span class="n">get_full_data_path</span><span class="p">(</span><span class="s2">&quot;hf_models&quot;</span><span class="p">)</span>
810811
<span class="n">name_dir</span> <span class="o">=</span> <span class="n">make_safe_directory_name</span><span class="p">(</span><span class="n">repo_id</span><span class="p">)</span>
811812
<span class="n">root_project</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">hf_root</span><span class="p">,</span> <span class="n">name_dir</span><span class="p">)</span>
812-
<span class="k">if</span> <span class="n">filename</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
813+
<span class="k">if</span> <span class="n">filename</span><span class="p">:</span>
813814
<span class="n">output_path</span> <span class="o">=</span> <span class="n">hf_hub_download</span><span class="p">(</span>
814815
<span class="n">repo_id</span><span class="o">=</span><span class="n">repo_id</span><span class="p">,</span> <span class="n">filename</span><span class="o">=</span><span class="n">filename</span><span class="p">,</span> <span class="n">local_dir</span><span class="o">=</span><span class="n">root_project</span>
815816
<span class="p">)</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 341499e documentation</title>
8+
<title>pythainlp.corpus.oscar &mdash; PyThaiNLP 0beadd8 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=e59714d7" />
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=bb420ec2"></script>
16+
<script src="../../../_static/documentation_options.js?v=890cbf12"></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 341499e documentation</title>
8+
<title>pythainlp.corpus.th_en_translit &mdash; PyThaiNLP 0beadd8 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=e59714d7" />
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=bb420ec2"></script>
16+
<script src="../../../_static/documentation_options.js?v=890cbf12"></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 341499e documentation</title>
8+
<title>pythainlp.corpus.tnc &mdash; PyThaiNLP 0beadd8 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=e59714d7" />
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=bb420ec2"></script>
16+
<script src="../../../_static/documentation_options.js?v=890cbf12"></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)