425776024/nlpcda

一键中文数据增强包 ; NLP数据增强、bert数据增强、EDA:pip install nlpcda

What it solves

This tool helps improve the performance and robustness of Natural Language Processing (NLP) models by generating additional training data. It allows you to create variations of your existing text without changing the original meaning, which helps models generalize better and resist adversarial attacks.

How it works

It provides a variety of augmentation techniques that can be applied to text, including random entity replacement, synonym swapping, homophone substitution, random character deletion, character position swapping, and equivalent character mapping. For more advanced needs, it supports generating similar sentences using the SimBERT model or via machine translation services. Users can also protect specific phrases or entities from being altered using a "stopwords" feature.

Who it’s for

It is designed for developers and researchers working on NLP tasks who need to expand their training datasets to improve model performance, particularly for those participating in machine learning competitions or building production-grade language models.

Highlights

  • Offers nine different augmentation methods, ranging from simple rule-based text manipulation to generative AI approaches.
  • Supports specialized NER (Named Entity Recognition) data augmentation for BIO-tagged datasets.
  • Includes a "stopwords" protection feature to ensure critical terms like dates or specific entities remain unchanged during augmentation.
  • Lightweight design: core rule-based functions do not require heavy dependencies like TensorFlow or PyTorch.
  • Highly configurable with support for custom user dictionaries and reproducible results via random seeds.

Related

  • Project
  • Project
  • Project
  • Project