|
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # FIXME: split this up into smaller pieces |
3 | 3 |
|
4 | | -"""Natural language functions. |
| 4 | +""" |
| 5 | +Natural language functions. |
5 | 6 |
|
6 | 7 | The following Python Packages are used: |
7 | 8 |
|
8 | | -* ``spacy`` is used for parsing natural languages |
9 | | -* ``nltk`` is used for functions using WordNet-related builtins |
10 | | -* `langid``, and ``pycountry`` are used for ``LanguageIdentify[]`` |
11 | | -* ``pyenchant`` is used for SpellingCorrectionList[] |
| 9 | +<ul> |
| 10 | + <li> 'spacy' is used for parsing natural languages |
| 11 | + <li> 'nltk' is used for functions using WordNet-related builtins |
| 12 | + <li> 'langid', and `'pycountry' are used for 'LanguageIdentify[]' |
| 13 | + <li> 'pyenchant'` is used for 'SpellingCorrectionList[]' |
| 14 | +</ul> |
12 | 15 |
|
13 | 16 | User customization: |
14 | 17 |
|
15 | | -For nltk, use the environment variable NLTK_DATA to specify a custom |
16 | | -data path (instead of $HOME/.nltk). For spacy, eset MATHICS3_SPACY_DATA, |
17 | | -a Mathics3-specific variable. |
| 18 | +For nltk, use the environment variable NLTK_DATA to specify a custom \ |
| 19 | +data path (instead of $HOME/.nltk). For spacy, set 'MATHICS3_SPACY_DATA', \ |
| 20 | +a Mathics3-specific variable. \ |
18 | 21 |
|
19 | | -In order to use the Extended Open Multilingual Wordnet (OMW) with NLTK |
| 22 | +In order to use the Extended Open Multilingual Wordnet (OMW) with 'NLTK' |
20 | 23 | and use even more languages, you need to install them manually. |
21 | 24 |
|
22 | 25 | Go to http://compling.hss.ntu.edu.sg/omw/summx.html, download the |
|
0 commit comments