Clozegen is an automated cloze test generator designed for language learning. It intelligently generates cloze exercises from bilingual sentence pairs, providing word hints and audio assistance. The German-English sentence pairs used in this project are sourced from Tatoeba Project, which provides high-quality bilingual sentence pairs for language learning.
- Automatic cloze generation from bilingual sentence pairs
- Intelligent word selection for cloze items
- Word hint generation
- Text-to-Speech (TTS) support
- Batch exercise generation with CSV export
- Integrate OpenAI API for more meaningful cloze content generation
- Add Anki synchronization support for better review experience
- Clone the repository:
git clone https://github.com/yourusername/clozegen.git
cd clozegen
- Install dependencies:
make install
- Prepare your bilingual sentence pairs file in the
source
directory - Run the generator:
make all
- Generated cloze exercises will be saved in the
csv
directory
- Adjust generation parameters in
clozegen/config.py
- Customize TTS settings
- Configure output format and save paths
Clozegen 是一个自动化的完形填空题生成工具,专门用于语言学习。它能够从双语句对中智能地生成完形填空练习,并提供单词提示和音频辅助功能。本项目使用的德语-英语句对数据来源于 Tatoeba 项目,该项目提供了高质量的双语句对资源用于语言学习。
- 自动从双语句对生成完形填空题
- 智能选择合适的填空词
- 生成词汇提示信息
- 支持音频生成(TTS)
- 批量生成练习题并导出为CSV格式
- 集成OpenAI API,生成更有意义的完形填空内容
- 支持同步到Anki,便于复习学习
- 克隆仓库:
git clone https://github.com/yourusername/clozegen.git
cd clozegen
- 安装依赖:
make install
- 准备双语句对文件,放置在
source
目录下 - 运行生成器:
make all
- 生成的完形填空题将保存在
csv
目录下
- 在
clozegen/config.py
中可以调整生成参数 - 支持自定义音频生成设置
- 可配置输出文件格式和保存路径
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.