Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sriramsk1999/frlove
https://github.com/sriramsk1999/frlove
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/sriramsk1999/frlove
- Owner: sriramsk1999
- Created: 2022-01-01T13:26:49.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-02T16:56:49.000Z (about 1 year ago)
- Last Synced: 2023-10-02T22:44:20.082Z (about 1 year ago)
- Language: Python
- Size: 67.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FrLove: Could a Frenchman rapidly learn to identify Lovecraft?
## See [blogpost](https://sriramsk1999.github.io/posts/2022/04/frlove/) for more details on this project
**Based on [STARTUP](https://openreview.net/forum?id=O3Y56aqpChA)**
1. Create a virtual environment and download the following libraries.
```sh
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
```2. Download raw data and process it (Prepare base for French, target for English)
```sh
python prepare_data.py --base fr --target en --n_base 5
```3. Train a teacher model, used for pseudolabeling in STARTUP (train french teacher)
```sh
python train_teacher.py --lang fr
```4. Run STARTUP - train student model
```sh
python startup.py --base fr --target en --n_base 5
```5. Evaluate STARTUP and Naive Transfer
```sh
python finetune.py --base fr --target en --n_way 5 --n_base 5
python finetune.py --embedding_load_path student_fr_en_best.pkl --base fr --target en --n_way 5 --n_base 5
```