|
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 59695bd documentation</title> |
| 8 | + <title>pythainlp.coref.core — PyThaiNLP 12d7768 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/style.css?v=eea1f72d" /> |
12 | 12 |
|
13 | 13 |
|
14 | 14 | <script src="../../../_static/jquery.js?v=5d32c60e"></script> |
15 | 15 | <script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script> |
16 | | - <script src="../../../_static/documentation_options.js?v=3c4b0b39"></script> |
| 16 | + <script src="../../../_static/documentation_options.js?v=905e4709"></script> |
17 | 17 | <script src="../../../_static/doctools.js?v=9bcbadda"></script> |
18 | 18 | <script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script> |
19 | 19 | <script src="../../../_static/js/theme.js"></script> |
@@ -118,7 +118,7 @@ <h1>Source code for pythainlp.coref.core</h1><div class="highlight"><pre> |
118 | 118 | <a class="viewcode-back" href="../../../api/coref.html#pythainlp.coref.coreference_resolution">[docs]</a> |
119 | 119 | <span class="k">def</span><span class="w"> </span><span class="nf">coreference_resolution</span><span class="p">(</span> |
120 | 120 | <span class="n">texts</span><span class="p">:</span> <span class="nb">list</span><span class="p">[</span><span class="nb">str</span><span class="p">],</span> <span class="n">model_name</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s2">"han-coref-v1.0"</span><span class="p">,</span> <span class="n">device</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s2">"cpu"</span> |
121 | | -<span class="p">):</span> |
| 121 | +<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> |
122 | 122 | <span class="w"> </span><span class="sd">"""Coreference Resolution</span> |
123 | 123 |
|
124 | 124 | <span class="sd"> :param List[str] texts: list of texts to apply coreference resolution to</span> |
|
0 commit comments