|
5 | 5 | <head> |
6 | 6 | <meta charset="utf-8" /> |
7 | 7 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
8 | | - <title>pythainlp.coref.core — PyThaiNLP a248ba9 documentation</title> |
| 8 | + <title>pythainlp.coref.core — PyThaiNLP e9b8f3b documentation</title> |
9 | 9 | <link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=03e43079" /> |
10 | 10 | <link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=9edc463e" /> |
11 | 11 | <link rel="stylesheet" type="text/css" href="../../../_static/copybutton.css?v=76b2166b" /> |
|
14 | 14 |
|
15 | 15 | <script src="../../../_static/jquery.js?v=5d32c60e"></script> |
16 | 16 | <script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script> |
17 | | - <script src="../../../_static/documentation_options.js?v=b13a96d9"></script> |
| 17 | + <script src="../../../_static/documentation_options.js?v=137e8f7c"></script> |
18 | 18 | <script src="../../../_static/doctools.js?v=fd6eb6e6"></script> |
19 | 19 | <script src="../../../_static/sphinx_highlight.js?v=6ffebe34"></script> |
20 | 20 | <script src="../../../_static/clipboard.min.js?v=a7894cd8"></script> |
@@ -128,12 +128,12 @@ <h1>Source code for pythainlp.coref.core</h1><div class="highlight"><pre> |
128 | 128 | <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> |
129 | 129 | <span class="w"> </span><span class="sd">"""Coreference Resolution</span> |
130 | 130 |
|
131 | | -<span class="sd"> :param List[str] texts: list of texts to apply coreference resolution to</span> |
| 131 | +<span class="sd"> :param Union[str, list[str]] texts: list of texts to apply coreference resolution to</span> |
132 | 132 | <span class="sd"> :param str model_name: coreference resolution model</span> |
133 | 133 | <span class="sd"> :param str device: device for running coreference resolution model on\</span> |
134 | 134 | <span class="sd"> ("cpu", "cuda", and others)</span> |
135 | 135 | <span class="sd"> :return: List of texts with coreference resolution</span> |
136 | | -<span class="sd"> :rtype: List[dict]</span> |
| 136 | +<span class="sd"> :rtype: list[dict]</span> |
137 | 137 |
|
138 | 138 | <span class="sd"> :Options for model_name:</span> |
139 | 139 | <span class="sd"> * *han-coref-v1.0* - (default) Han-Coref: Thai coreference resolution\</span> |
|
0 commit comments