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:
- Upload the repository files to the environment.
- Use the provided
trainer.pyscript to start training on cloud GPUs.
API Reference
Configuration
The ModelConfig class allows adjustments to:
embedding_dimhidden_dimnum_headsdropout
Data Preparation
Use DataProcessor for preprocessing data and preparing labels.
Contributing
- Fork the repo
- Create a branch (
git checkout -b feature-branch) - Commit changes (
git commit -m 'Add feature') - Push the branch (
git push origin feature-branch) - Open a pull request
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd450b86eac3ae9e59f14dd3f083f764c82f881d05eef3e9be8c2951797e3dee
|
|
| MD5 |
744594289d6a47bd27d4346fc52f3193
|
|
| BLAKE2b-256 |
3ff1647960d56ca5f267b2e960018701c10376e84a8b8568a4e46bbda603b1a7
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63b45860cf459b52a313af021a3e9860d84c272bf8bd977057b9716bcf4d8d40
|
|
| MD5 |
4e1b757ba19fba2f851602a484f53952
|
|
| BLAKE2b-256 |
45191cce97978d4f17ac1703ce041afc54bfe6053454d40ed70f67888e97aaa3
|