Skip to main content

A spaCy model customizer and management tool

Project description

NLP Model creation & training API

This project is being developed under supervision of Universidad Nacional de Mar del Plata and Infolab Mar del Plata.

Objetive

This project will offer an API for creating, training and using spaCy NLP models. It will allow to create models by theme and to use them to analyze plain text data. Administrators will be able to configure different tools for model creation and managing.

Limits

The project is limited to the features previously defined. Although it will have services or ways to bind it to another forensic platforms, any type of integration with these kind of systems is out of scope.

Current status & features

  • Model creation: It allows to create custom models with different search topics for both nouns and verbs.
  • Tokenizer personalization: It allows to add specific rules to tokenizer during model creation. This includes creating fuzzy tokens from original ones to get broader range of detection capacity
  • Text analysis with custom models: It allows to use custom models to analyze text. Actually it gets two kind of results: The ones obtained from tokenizer and the ones obtained from entity recognition. Actually entity recognition module can not be trained.
  • Model save, edit and deletion: It allows to fully manage custom models by allowing its modification or deletion.
  • Word processing utilities set up (WIP): It allows to set different setups for the word processing module. This allows to manage how words are added to the tokenizer rules of the current module. This feature is implement, but integration with main controller is pending.
  • Training manager module: This module allows to store, view, edit or discard examples submitted. This grants administrators a full control of model training and, at the same time, it will allow a collaborative enhancement of models.
  • Training models: This feature allows administrator to apply approved sets of training data over the models.

Requirements

  • Python 3. (Developed with python 3.7).
  • MongoDB server installed on target computer.
  • All python modules will be installed during package setup.

Installation

  • Run: pip3 install nlp-model-gen
  • After package is installed run:
    MacOs: nlp_model_gen_install.sh
    Ubuntu: /home/<user>/.local/bin/nlp_model_gen_install.sh
    Windows: python <python_path>\scripts\nlp_model_gen_install.sh
  • For importing the model admin from ipython or python console: from nlp_model_gen import NLPModelAdmin
  • Instanciate a new admin: admin = NLPModelAdmin()

License

MIT License

Copyright (c) 2018 The Python Packaging Authority

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

This is a university project. It's usage is thought for profesionals, no further help or usage guides will be provided.

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

nlp_model_gen-0.1.11.1.tar.gz (452.3 kB view details)

Uploaded Source

Built Distribution

nlp_model_gen-0.1.11.1-py3-none-any.whl (554.7 kB view details)

Uploaded Python 3

File details

Details for the file nlp_model_gen-0.1.11.1.tar.gz.

File metadata

  • Download URL: nlp_model_gen-0.1.11.1.tar.gz
  • Upload date:
  • Size: 452.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for nlp_model_gen-0.1.11.1.tar.gz
Algorithm Hash digest
SHA256 7cf81f88eb901e44419018c5d0269930d0595739bab3bf361ffb7105d20b8376
MD5 af72a4658980bccb967bc3b1f321dd48
BLAKE2b-256 2a3e18850c804a451a9bcc6ef744d487bc0802f8dea4b40c6406b9ba68121471

See more details on using hashes here.

File details

Details for the file nlp_model_gen-0.1.11.1-py3-none-any.whl.

File metadata

  • Download URL: nlp_model_gen-0.1.11.1-py3-none-any.whl
  • Upload date:
  • Size: 554.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for nlp_model_gen-0.1.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 87ba6466ebe326c2d262fa349010b0aa4242dd2b46ba25d5f13b92f90bb4df7f
MD5 636ae3104fb259c1ff5efcbcbfb8c82c
BLAKE2b-256 1bc3518dc4e8d84d23d1ed3492caf9f3982249483ebc4da8f7612e39ad3bb934

See more details on using hashes here.

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