|
1 | 1 | {% extends "head.html" %} |
2 | 2 | {% block title %} {{ corpus['name'] }} {% endblock %} |
3 | 3 | {% block body %} |
4 | | -<div class="bg-light"> |
| 4 | +<div class="bg-light p-4 rounded"> |
5 | 5 | <p><a class="btn btn-secondary" href="./list-corpus.html">< Back</a></p> |
6 | | -<div class="d-flex align-items-center p-3 my-3 text-white-50 bg-purple rounded box-shadow"> |
7 | | - <div class="lh-100"> |
8 | | - <h1 class="mb-0 text-white lh-100">{{ corpus['name'] }}</h1> |
9 | | - <small>latest version: {{ corpus['latest_version'] }}</small> |
| 6 | + <div class="d-flex align-items-center p-3 my-3 text-white-50 bg-purple rounded box-shadow"> |
| 7 | + <div class="lh-100"> |
| 8 | + <h1 class="mb-0 text-white lh-100">{{ corpus['name'] }}</h1> |
| 9 | + <small>latest version: {{ corpus['latest_version'] }}</small> |
| 10 | + </div> |
10 | 11 | </div> |
11 | | - </div> |
| 12 | + <p>{{ corpus['text'] }}</p> |
| 13 | + <br> |
| 14 | + <p><strong>Description:</strong> {{ corpus['description'] }}</p> |
| 15 | + <p><strong>Long Description:</strong> {{ corpus['long_description'] }}</p> |
| 16 | + <p><strong>HomePage:</strong> <a rel="nofollow" target="_blank" href="{{ corpus['url'] }}">{{ corpus['url'] }}</a></p> |
| 17 | + <p><strong>Authors:</strong> {{ corpus['authors'][0] }}</p> |
| 18 | + <hr> |
| 19 | + <h2>Download and Use</h2> |
| 20 | + <h3>Download</h3> |
| 21 | + <code>from pythainlp.corpus import download<br /> |
| 22 | + download('{{ corpus['name'] }}')</code> |
| 23 | + <h3>Use</h3> |
| 24 | + <p>It's get path file of corpus.</p> |
| 25 | + <code>from pythainlp.corpus import get_corpus_path<br /> |
| 26 | + get_corpus_path('{{ corpus['name'] }}')</code> |
| 27 | + <p>If <code>get_corpus_path('{{ corpus['name'] }}')</code> is <code>None</code> then you have not downloaded <code>{{ corpus['name'] }}</code>.</p> |
| 28 | + <hr> |
| 29 | + <h3>Release history</h3> |
| 30 | + {% for i in corpus['versions'] %} |
| 31 | + <h4>{{ i }}</h4> |
| 32 | + <p><strong>File Name:</strong> {{ corpus['versions'][i]['filename'] }}</p> |
| 33 | + <p><strong>md5:</strong> {{ corpus['versions'][i]['md5'] }}</p> |
| 34 | + <p><strong>PyThaiNLP version:</strong> {{ corpus['versions'][i]['pythainlp_version'] }}</p> |
| 35 | + <p><strong>Link Download:</strong> <a rel="nofollow" target="_blank" href="{{ corpus['versions'][i]['download_url'] }}">{{ corpus['versions'][i]['filename'] }}</a></p> |
| 36 | + {% endfor %} |
12 | 37 | </div> |
13 | | - <p>{{ corpus['text'] }}</p> |
14 | | - <br> |
15 | | -<p>Description : {{ corpus['description'] }}</p> |
16 | | -<p>Long Description : {{ corpus['long_description'] }}</p> |
17 | | - <p><b>HomePage</b> : <a rel="nofollow" target="_blank" href="{{ corpus['url'] }}">{{ corpus['url'] }}</a></p> |
18 | | - <p><b>Authors</b> : {{ corpus['authors'][0] }}</p> |
19 | | - <hr> |
20 | | - <h2>Download and Use</h2> |
21 | | - <h3>Download</h3> |
22 | | - <code>from pythainlp.corpus import download<br /> |
23 | | -download('{{ corpus['name'] }}')</code> |
24 | | -<h3>Use</h3> |
25 | | -It's get path file of corpus.<br /> |
26 | | -<code>from pythainlp.corpus import get_corpus_path<br /> |
27 | | - get_corpus_path('{{ corpus['name'] }}')</code><br /> |
28 | | - if <code>get_corpus_path('{{ corpus['name'] }}')</code> is <code>None</code> than you not download <code>{{ corpus['name'] }}</code>. |
29 | | - <hr> |
30 | | - <h3>Release history</h3> |
31 | | - {% for i in corpus['versions'] %} |
32 | | - <h4>{{ i }}</h4> |
33 | | - <p>File Name : {{ corpus['versions'][i]['filename'] }}</p> |
34 | | - <p>md5 : {{ corpus['versions'][i]['md5'] }}</p> |
35 | | - <p>PyThaiNLP version: {{ corpus['versions'][i]['pythainlp_version'] }}</p> |
36 | | - <p>Link Download : <a rel="nofollow" target="_blank" href="{{ corpus['versions'][i]['download_url'] }}">{{ corpus['versions'][i]['filename'] }}</a></p> |
37 | | -{% endfor %} |
38 | | - |
39 | 38 | {% endblock %} |
0 commit comments