Skip to content

gaivrt/AnkiCardProducer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anki Card Producer

An automated tool for generating formatted English word study cards that can be directly imported into Anki.

Features

  • Batch process English words to automatically generate detailed study cards including:
    • Phonetic symbols
    • Parts of speech and definitions
    • Memory aids
    • Common collocations
    • Derivatives
    • Synonyms
  • Supports batch processing for large word lists
  • Uses Google Gemini API for intelligent content generation
  • Proxy support for users in regions with limited access
  • Auto-saves processing results with checkpoint support
  • Preview feature to ensure output quality

Prerequisites

  1. Ensure Python 3.x is installed
  2. Install required packages:
    pip install google-generativeai requests
  3. Obtain a Google Gemini API key
  4. Configure in word_processor.py:
    • Replace API_KEY with your Gemini API key
    • Adjust USE_PROXY and proxy settings as needed

Usage

  1. Prepare input file:

    • Create words.txt file
    • Input one word per line
  2. Run the program:

    python word_processor.py
  3. The program will:

    • Process words in batches (20 words per batch)
    • Save batch results in the batch directory
    • Merge all results into processed_words.txt

File Structure

  • word_processor.py: Main program file
  • words.txt: Input word list
  • processed_words.txt: Processed results file
  • batch/: Directory for batch processing results

Notes

  • Ensure stable network connection
  • Enable proxy settings if accessing from regions with limited access
  • Short delay between batches to avoid API rate limiting
  • First batch preview for format verification

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages