An open API service indexing awesome lists of open source software.

https://github.com/lpstrevisan/ankivocabextractor-jp

This project converts Japanese vocabulary list in PDF file to CSV file for use in creating Anki Flashcards.
https://github.com/lpstrevisan/ankivocabextractor-jp

csv genai llm pandas-dataframe pdf-converter python

Last synced: about 1 year ago
JSON representation

This project converts Japanese vocabulary list in PDF file to CSV file for use in creating Anki Flashcards.

Awesome Lists containing this project

README

          

# AnkiVocabExtractor JP

This project converts PDF file to CSV file for use in creating Anki Decks. It's a very specific project I did to create flashcards from the vocabulary lists I received from the Japanese course I took.

I also implemented a kanji to furigana converter in Anki format using the Google Gen AI SDK.

## Installation

Because of the Google Gen AI SDK, you need a Gemini API key which you can get at .

To install the required dependencies, first, create and activate a virtual environment:

```bash
python -m venv venv
source venv/bin/activate # On Windows use: venv\Scripts\activate
```

Then install the dependencies:

```bash
pip install -r requirements.txt
```

## Configuration

Create a `.env` file in the project root and add your Gemini API key:

```env
GEMINI_API_KEY=your_api_key_here
```

## Usage

To run the project, provide a PDF file as an argument:

```bash
python3 main.py file_name.pdf
```

Replace `file_name.pdf` with the actual name of your PDF file.