Skip to main content

A Framework for Integrating Linguistic Analysis and Semantic Annotation of Text Documents.

Project description

DeepNLPF: A Framework for Integrating Linguistic Analysis and Semantic Annotation of Text Documents.

The DeepNLPF it contains support for running various accurate natural language processing tools. For detailed information please visit our official website.

DeepNLPF has been implemented and tested using the Ubuntu 19.04 operating system. However, it may work on other similar linux versions or Windows and MacOS if it satisfies the dependencies on external NLP tools mentioned below "at your own risk".

System requirements

Hardware

  • Memoria RAM: Min. 16GB.
  • CPU Core: Min. Dualcore
  • Disk Space: ~ MB (does not include disk space for IDE/tools).

Software

If you prefer, download and install the dependencies from our script.

$ bash install_requeriments_deepnlpf.sh

Pip install

    $ pip install deepnlpframework

Install plugin base

For DeepNLPF to work it needs a natural language processing tool at its base that we take from Stanford CoreNLP.

    $ deepnlpf --install stanfordcorenlp

Getting Started

To see DeepnlpF custom pipeline in action, you can launch the Python interactive interpreter, and try the following commands:

>>> from deepnlpf.pipeline import Pipeline
>>> custom_pipeline = """
    {
        "tools": [{
            "stanfordcorenlp": {
                "pipeline": [
                    "tokenize",
                    "ssplit",
                    "pos",
                    "lemma",
                    "ner",
                    "parse",
                    "depparse",
                    "truecase",
                    "dcoref"
                ]
            }
        }]
    }
    """

>>> sentence = "Barack Obama was born in Hawaii."
>>> nlp = Pipeline(raw_text=sentence, json_string=custom_pipeline)
>>> nlp.annotate()

To print the output you can use as follows:

>>> annotation = nlp.annotate()
>>> print(annotation)

or indented

>>> import json
>>> print(json.dumps(annotation, indent=4))

Plugins

Access the official plugin repository and try out other NLP tools.

LICENSE

DeepNLPF is released under the Apache License, Version 2.0. See the LICENSE file for more details.

Project details


Release history Release notifications

Download files

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

Files for deepnlpframework, version 1.0.11
Filename, size File type Python version Upload date Hashes
Filename, size deepnlpframework-1.0.11-py3.7.egg (160.6 kB) File type Egg Python version 3.7 Upload date Hashes View
Filename, size deepnlpframework-1.0.11-py3-none-any.whl (60.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size deepnlpframework-1.0.11.tar.gz (47.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page