This project processes Chinese idioms, translates them, and generates topic tags based on their meanings.
-
Make sure you have Python 3.x installed
-
Run the setup script to create and activate the virtual environment:
./setup.sh
This will:
- Create a virtual environment if it doesn't exist
- Activate the virtual environment
- Install all required dependencies
-
To activate the virtual environment in future sessions:
source venv/bin/activate
chinese_idioms.csv: Original Chinese idioms datachinese_idioms_with_translations.csv: Idioms with English translationschinese_idioms_with_tags.csv: Idioms with translations and generated tagsgenerate_tags.py: Script to generate topic tags for idiomsrequirements.txt: Python package dependenciessetup.sh: Setup script for virtual environment
After setting up the environment, you can run the tag generation script:
python3 generate_tags.pyThis will process the idioms and generate a new CSV file with topic tags based on both Chinese and English meanings.