Skip to main content

used to interface with Senna and stanford-parser.jar for dependency parsing

Project description


Creating practNLPTools in lite mode.[ get the old coding in `devbranch`_ or old stable code `properbranch`_]


|Build Status| - on click this built this might take you to build of
`practNLPTools`_ which is testing ground for this repository so don’t

Practical Natural Language Processing Tools for Humans.
practNLPTools is a pythonic library over `SENNA`_ and Stanford
Dependency Extractor.

.. |pypi status| image::

.. |travis status| image::

.. |doc status| image::
:alt: Documentation Status

.. |dep status| image::
:alt: Updates

.. |blocker status| image::
:alt: Python 3

.. |Wercker status| image::

| name | status |
| Wercker status | |Wercker status||
| PyPi | |pypi status||
| travis | |travis status||
| Documentation | |doc status||
| dependency | |dep status||
| blocker Pyupbot | |blocker status||
| FOSSA | |FOSSA Status||

* Documentation:


Downlarding Stanford Parser JAR

To downlard the stanford-parser from github automatically and placing them inside the install direction.

.. code:: bash

pntl -I true
# downlards required file from github.

Running Predefine Examples Sentences

To run exiting example for batch(which has more than one list of examples).

.. code:: bash

pntl -SE home/user/senna -B true

To run predefine example for one sentence.

.. code:: bash

pntl -SE home/user/senna

Running user given sentence

To run user given example using `-S` is

.. code:: bash

pntl -SE home/user/senna -S 'I am gonna make him an offer he can not refuse.'


- Semantic Role Labeling.
- Syntactic Parsing.
- Part of Speech Tagging (POS Tagging).
- Named Entity Recognisation (NER).
- Dependency Parsing.
- Shallow Chunking.
- Skip-gram(in-case).
- find the senna path if is install in the system.
- stanford parser and depPaser file into installed direction.

Future work
- tag2file(new)
- creating depParser for corresponding os environment
- custome input format for stanford parser insted of tree format


#. Fast: `SENNA`_ is written is C. So it is Fast.
#. We use only dependency Extractor Component of Stanford Parser, which
takes in Syntactic Parse from SENNA and applies dependency
Extraction. So there is no need to load parsing models for Stanford
Parser, which takes time.
#. Easy to use.
#. Platform Supported - Windows, Linux and Mac
#. Automatic finds stanford parsing jar if it is present in install path[pntl].

.. note::

SENNA pipeline has a fixed maximum size of the sentences that it
can read. By default it is 1024 token/sentence. If you have larger
sentences, changing the MAX\_SENTENCE\_SIZE value in SENNA\_main.c should beconsidered and your system specific binary should be rebuilt. Otherwise this could introduce misalignment errors.


A computer with 500mb memory, Java Runtime Environment (1.7
preferably, works with 1.6 too, but didnt test.) installed and python.



sudo python install

run this commands as administrator:


python install

Bench Mark comparsion

By using the ``time`` command in ubuntu on running the ```` on
this `link`_ and along with ```` on ``pntl``

.. _link:

| | pntl | NLTK-senna |
| at fist run | | |
| | real 0m1.674s | real 0m2.484s |
| | user 0m1.564s | user 0m1.868s |
| | sys 0m0.228s | sys 0m0.524s |
| at second run | | |
| | real 0m1.245s | real 0m3.359s |
| | user 0m1.560s | user 0m2.016s |
| | sys 0m0.152s | sys 0m1.168s |

.. note::

this bench mark may differt accouding to system’s working and to restult present here is exact same result in my system ububtu 4Gb RAM
and i3 process. If I find another good benchmark techinque then I will
change to it.

.. _practNLPTools:
.. _SENNA:
.. _properbranch:
.. _devbranch:

.. |Author| image::
.. |Python-version-3| image::
.. |Build Status| image::
.. |FOSSA Status| image::

.. Features
.. --------

.. * TODO


This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.

.. _Cookiecutter:
.. _`audreyr/cookiecutter-pypackage`:


* Proper release for PyPI version.

0.2.0 4-alpha
* Marking standard tools for `pntl`.

0.1.1 (2017-09-17)

* Planing to release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pntl-0.2.4.tar.gz (2.5 MB view hashes)

Uploaded source

Built Distribution

pntl-0.2.4-py2.py3-none-any.whl (2.5 MB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page