Skip to main content

A deep learning natural language processing service for simulating different systems (normal-parallel-single server).

Project description

DNLP Simulation Service

This repository contains the DNLP Simulation Service, a machine learning-based service extraction and simulation framework for natural language processing tasks. The model, built with PyTorch and Transformers, leverages BERT embeddings and multi-head attention for robust service classification and information extraction.

Features

  • Service Extraction: Extracts service-related details from unstructured text.
  • Simulation: Simulates customer interactions and service response times.
  • Customizable NLP Pipeline: Built with flexible NLP components for tailored use cases.
  • Cloud-Ready: Compatible with cloud platforms and frameworks like Kaggle and Colab for cloud training and fine-tuning.

Installation

Clone the repository and install dependencies:

git clone https://github.com/Mohamed-Hamdey/DNLP-Simulation-Service.git
cd DNLP-Simulation-Service
pip install -r requirements.txt

Alternatively, install the package directly:

pip install DNLP-Simulation-Service

Usage

Training

To train the model, prepare a dataset in JSON format and run:

from DNLP_Simulation_Service.trainer import NLPService
from DNLP_Simulation_Service.config import ModelConfig

config = ModelConfig(...)
service = NLPService(config=config)
service.train(train_data="path/to/dataset.json")

Prediction

Once trained, make predictions using:

text = "Example service description text."
prediction = service.predict(text)
print(prediction)

Cloud Training

To train on Kaggle or Colab:

  1. Upload the repository files to the environment.
  2. Use the provided trainer.py script to start training on cloud GPUs.

API Reference

Configuration

The ModelConfig class allows adjustments to:

  • embedding_dim
  • hidden_dim
  • num_heads
  • dropout

Data Preparation

Use DataProcessor for preprocessing data and preparing labels.

Contributing

  1. Fork the repo
  2. Create a branch (git checkout -b feature-branch)
  3. Commit changes (git commit -m 'Add feature')
  4. Push the branch (git push origin feature-branch)
  5. Open a pull request

License

This project is licensed under the MIT License.

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

simsysdnlp-0.0.4.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SimsysDNLP-0.0.4-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file simsysdnlp-0.0.4.tar.gz.

File metadata

  • Download URL: simsysdnlp-0.0.4.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for simsysdnlp-0.0.4.tar.gz
Algorithm Hash digest
SHA256 bd450b86eac3ae9e59f14dd3f083f764c82f881d05eef3e9be8c2951797e3dee
MD5 744594289d6a47bd27d4346fc52f3193
BLAKE2b-256 3ff1647960d56ca5f267b2e960018701c10376e84a8b8568a4e46bbda603b1a7

See more details on using hashes here.

File details

Details for the file SimsysDNLP-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: SimsysDNLP-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for SimsysDNLP-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 63b45860cf459b52a313af021a3e9860d84c272bf8bd977057b9716bcf4d8d40
MD5 4e1b757ba19fba2f851602a484f53952
BLAKE2b-256 45191cce97978d4f17ac1703ce041afc54bfe6053454d40ed70f67888e97aaa3

See more details on using hashes here.

Supported by

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