Skip to content

Commit 6c0e0d8

Browse files
authored
Update README.rst
1 parent 7263192 commit 6c0e0d8

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

README.rst

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ Example Session
1717
Out[3]= 0.5
1818
In[4] = TextCases["I was in London last year.", "Pronoun"]
1919
Out[4]= {I}
20+
In[5] = LanguageIdentify["eins zwei drei"]
21+
Out[4]= "German"
2022

2123
More examples can be found in the `test file <https://github.com/Mathics3/Mathics3-Module-nltk/blob/master/test/test_nltk.py>`_.
2224

2325
Installing and Running
2426
----------------------
2527

26-
To use build module, you will need to install Python module `nltk
28+
To build this Mathics3 module, you will need to install the Python module `nltk
2729
<https://pypi.org/project/nltk/>`_ and `spacy
2830
<https://pypi.org/project/spacy/>`_, and then install some data from
2931
Language-specific words:
@@ -32,16 +34,15 @@ Language-specific words:
3234

3335
$ make develop # or make install
3436

35-
The above ``make`` command uses defaults the language to English. If
36-
you would like to install for another language set the variable
37+
The above ``make`` command defaults to the English. If
38+
you would like to install for another language, set the variable
3739
``LANG``. For example:
3840

3941
::
4042

4143
$ make develop LANG=fr
4244

43-
In order to use the Extended Open Multilingual Wordnet with NLTK and
44-
use even more languages, you need to install them manually. Go to
45+
To use the Extended Open Multilingual Wordnet with NLTK and use even more languages, you need to install them manually. Go to
4546
`<http://compling.hss.ntu.edu.sg/omw/summx.html>`_, download the data,
4647
and then create a new folder under
4748
``$HOME/nltk_data/corpora/omw/your_language`` where you put the file
@@ -54,9 +55,9 @@ If you get the message
5455

5556
OSError: [E050] Can't find model 'en'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory.
5657

57-
There is a problem with the ``spacy`` the library for advanced Natural Language Processing in Python.
58+
There is a problem with the ``spacy``library for advanced Natural Language Processing in Python.
5859
59-
You might be able to fix this running:
60+
You might be able to fix this by running:
6061
6162
::
6263
@@ -71,8 +72,7 @@ User customization
7172
.. reinstate after this is fixed in the code
7273
.. For nltk, use the environment variable ``NLTK_DATA`` to specify a custom data path (instead of $HOME/.nltk). For spacy, set 'MATHICS3_SPACY_DATA', a Mathics3-specific variable.
7374

74-
In order to use the Extended Open Multilingual Wordnet (OMW) with 'NLTK'
75-
and use even more languages, you need to install them manually.
75+
To use the Extended Open Multilingual Wordnet (OMW) with 'NLTK' and use even more languages, you need to install them manually.
7676

7777
Go to http://compling.hss.ntu.edu.sg/omw/summx.html, download the data, and then create a new folder under
7878
``$HOME/nltk_data/corpora/omw/your_language`` where you put the file from
@@ -81,10 +81,8 @@ wn-data-your_language.tab.
8181

8282
Adding more languages to Open Multilingual Wordnet:
8383

84-
In order to use the Extended Open Multilingual Wordnet with NLTK and
85-
use even more languages, you need to install them manually. Go to
86-
http://compling.hss.ntu.edu.sg/omw/summx.html, download the data, and
87-
then create a new folder under
84+
To use the Extended Open Multilingual Wordnet with NLTK and use even more languages, you need to install them manually. Go to
85+
http://compling.hss.ntu.edu.sg/omw/summx.html, download the data, and then create a new folder under
8886
$HOME/nltk_data/corpora/omw/your_language where you put the file from
8987
wiki/wn-wikt-your_language.tab, and rename it to
9088
wn-data-your_language.tab.

0 commit comments

Comments
 (0)