Metadata-Version: 2.1
Name: pymathics-natlang
Version: 2.2.0
Summary: UNKNOWN
Home-page: UNKNOWN
Maintainer: Mathics Group
License: UNKNOWN
Description: |Pypi Installs| |Latest Version| |Supported Python Versions|
        
        Mathics Natural Language Toolkit module.
        
        
        Example Session
        ---------------
        
        ::
        
           $ mathicsscript
           In[1]:= LoadModule["pymathics.natlang"]
           Out[1]= pymathics.natlang
           In[2]= Pluralize["try"]
           Out[2]= tries
           In[3]= WordFrequency["Apple Tree and apple", "apple", IgnoreCase -> True]
           Out[3]= 0.5
           In[4] = TextCases["I was in London last year.", "Pronoun"]
           Out[3]= {I}
        
        More examples can be found in the `test file <https://github.com/Mathics3/pymathics-natlang/blob/master/test/test_natlang.py>`_.
        
        Installing and Running
        ----------------------
        
        To use build module, you will need to install Python module `nltk
        <https://pypi.org/project/nltk/>`_ and `spacy
        <https://pypi.org/project/spacy/>`_, and then install some data from
        Language-specific words:
        
        ::
        
           $ make develop  # or make install
        
        The above ``make`` command uses defaults the language to English. If
        you would like to install for another language set the variable
        ``LANG``. For example:
        
        ::
        
           $ make develop LANG=fr
        
        In order to use the Extended Open Multilingual Wordnet with NLTK and
        use even more languages, you need to install them manually. Go to
        `<http://compling.hss.ntu.edu.sg/omw/summx.html>`_, download the data,
        and then create a new folder under
        ``$HOME/nltk_data/corpora/omw/your_language`` where you put the file
        from wiki/wn-wikt-your_language.tab, and rename it to
        wn-data-your_language.tab.
        
        If you get the message
        
        ::
        
           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.
        
        There is a problem with the ``spacy`` the library for advanced Natural Language Processing in Python.
        
        You might be able to fix this running:
        
        ::
        
           python -m spacy download en
        
        Adjust "python" and "en" (the language you want) above as needed.
        
        .. |Latest Version| image:: https://badge.fury.io/py/pymathics-natlang.svg
        		 :target: https://badge.fury.io/py/pymathics-natlang
        .. |Pypi Installs| image:: https://pepy.tech/badge/pymathics-natlang
        .. |Supported Python Versions| image:: https://img.shields.io/pypi/pyversions/pymathics-natlang.svg
        .. |Packaging status| image:: https://repology.org/badge/vertical-allrepos/pymathics-natlang.svg
        			    :target: https://repology.org/project/pymathics-natlang/versions
        
        
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Mathematics
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Topic :: Software Development :: Interpreters
Classifier: Topic :: Scientific/Engineering :: Human Machine Interfaces
Classifier: Topic :: Text Processing
Classifier: Topic :: Text Processing :: Linguistic
Description-Content-Type: text/x-rst
