A repository for augmenting Chinese datasets related to gender discrimination through automated methods. This project provides models and tools to expand existing Chinese gender discrimination datasets, leveraging AI APIs to generate new unlabeled examples while maintaining annotation accuracy.
- /data: Contains original and augmented Chinese gender discrimination datasets.
- /AugmentedSexism: Includes the dataset augmentation model that generates new examples based on the original data.
- Automatically expands Chinese gender discrimination datasets using AI-powered generation
- Maintains annotation accuracy by using original dataset examples as reference
- Generates high-quality labeled examples for model training or further analysis
- Python 3.8+
- Valid API key for a supported AI service (see configuration instructions)
- Original Chinese gender discrimination dataset (placed in the /data directory)
Prepare your original Chinese gender discrimination dataset and place it in the AugumentedSexism/data directory
- Train data(example data) must include
textcolumn and default properties which is defined inAugumentedSexism/main.py-> DEFAULT -> rule - Text data(make annotate data) must include
textcolumn
- Configure your AI service and API key in the
main.py - Configure path of train data and test data in the
main.py
- Run the augmentation script:
python main.py
- check the result in
AugumentedSexism/data/processed
