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.
- Host: GitHub
- URL: https://github.com/lpstrevisan/ankivocabextractor-jp
- Owner: lpstrevisan
- Created: 2025-02-16T23:39:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-25T00:59:41.000Z (over 1 year ago)
- Last Synced: 2025-03-25T01:33:58.425Z (over 1 year ago)
- Topics: csv, genai, llm, pandas-dataframe, pdf-converter, python
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.