Skip to main content

SC4001 NLarge

Purpose of Project

NLarge is a project focused on exploring and implementing various data augmentation techniques for Natural Language Processing (NLP) tasks. The primary goal is to enhance the diversity and robustness of training datasets, thereby improving the performance and generalization capabilities of NLP models. This project includes traditional data augmentation methods such as synonym replacement and random substitution, as well as advanced techniques using Large Language Models (LLMs).

Initializing Virtual Environment

We use Poetry in this project for dependency management. To get started, you will need to install Poetry.

pip install poetry

Afterwards, you can install the needed packages from Python with the help of Poetry using the command below:

poetry install

Repository Contents

Usage

To run the models and experiments, you can use the python notebooks in the example/ directory. The notebooks contain detailed explanations and code snippets for data augmentation and model training. For the results of the experiments, you can refer to the example/test/ directory.

We also refer the user to demo_attention.ipynb for a more detailed example of how to use the pipeline.py module. The notebook contains the code for training a model with attention mechanism using the NLarge library as a toolkit for data augmentation.

Compute limitation

Should you face computational limitation, you can use the datasets that we have preprocessed and saved in the example/llm-dataset/ directory. As the inference time for the Large Language Models (LLMs) can be quite long, we have preprocessed in advance such that end users can directly use the preprocessed datasets for training and testing purposes.

Development

While the library has been developed and tested, the library can be easily extended with additional data augmentation techniques or with new models to support the testing and research of the performance of different augmentation techniques.

The library can be easily extended with additional data augmentation techniques through creation of new modules or files in the NLarge package.

Website

You can access the PiPy page of the project from the link here: pypi page

Our github repository can be found here: github page

Contributing

Contributions to this project are welcome. If you have any suggestions or improvements, please create a pull request or open an issue.

Metadata

Release files for NLarge 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for NLarge 1.0.0
File Size Uploaded
nlarge-1.0.0.tar.gz 25.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for NLarge 1.0.0
File Interpreter ABI Platform
nlarge-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 45.0 kB

Release files / nlarge-1.0.0.tar.gz

Download URL nlarge-1.0.0.tar.gz
Size 25.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6e442ada09d1ed507168396c76f202d742de4cf0c402bdadc01435df89c210a6
BLAKE2b-256 checksum
How to use checksums
8841d289d01d6067aafaf166c7a0b8beea11d9cd57222af512bc7aa04e381e46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.13.0 Darwin/24.0.0

Release files / nlarge-1.0.0-py3-none-any.whl

Download URL nlarge-1.0.0-py3-none-any.whl
Size 19.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
02e759184f0aeeeb890559f861ff1c50ea0593dc6ac77fe08c7dce93a90c0d54
BLAKE2b-256 checksum
How to use checksums
4a526efbed5c0a582aa9d9be14413a9d1ea746c0115ad8a0c4e81f469fe5f3c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.13.0 Darwin/24.0.0

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page