Skip to content

Commit

Permalink
[WIP] Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ljvmiranda921 committed Jan 5, 2025
1 parent 2b0701a commit d0c75b6
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 6 deletions.
6 changes: 3 additions & 3 deletions models/v0.2.0/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ description: |
This step downloads all assets and prepares all the datasets and binaries for
training use. For example, if you want to train `tl_calamancy_md`, run the following comand:
```
bash scripts/tl_calamancy_md.sh
```sh
MODEL=tl_calamancy_md scripts/train.sh
```
Expand Down Expand Up @@ -120,7 +120,7 @@ workflows:
tl-calamancy-trf:
- "train-parser-trf"
- "train-ner-trf"
- "assemble"
- "assemble-trf"

commands:
- name: "setup-finetuning-data"
Expand Down
3 changes: 0 additions & 3 deletions models/v0.2.0/scripts/tl_calamancy_md.sh

This file was deleted.

26 changes: 26 additions & 0 deletions models/v0.2.0/scripts/train.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

MODEL="tl_calamancy_md" # Set this to tl_calamancy_md, tl_calamancy_lg, or tl_calamancy_trf as needed.

case $MODEL in
tl_calamancy_md)
echo "Executing actions for tl_calamancy_md..."
python -m spacy project run tl-calamancy . \
--vars.size md \
--vars.vectors vectors/floret-tl-md
;;
tl_calamancy_lg)
echo "Executing actions for tl_calamancy_lg..."
python -m spacy project run tl-calamancy . \
--vars.size lg \
--vars.vectors vectors/fasttext-tl
;;
tl_calamancy_trf)
echo "Executing actions for tl_calamancy_trf..."
python -m spacy project run tl-calamancy-trf
# Add your commands here
;;
*)
echo "Unknown MODEL: $MODEL"
;;
esac

0 comments on commit d0c75b6

Please sign in to comment.