Skip to content

Commit

Permalink
Merge pull request #7 from explosion/rename-update
Browse files Browse the repository at this point in the history
update names and update version
  • Loading branch information
koaning committed Nov 16, 2023
2 parents 84ad1b7 + 88ed892 commit 35ff5eb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/tests.yml
Expand Up @@ -44,6 +44,14 @@ jobs:
python -m prodigy db-in textcat-binary tests/datasets/textcat-binary.jsonl
python -m prodigy db-in textcat-multi tests/datasets/textcat-multi.jsonl
- name: Confirm recipe names
run: |
python -m prodigy hf.ner.correct --help
python -m prodigy hf.textcat.correct --help
python -m prodigy hf.train.ner --help
python -m prodigy hf.train.textcat --help
python -m prodigy hf.upload --help
- name: Run ruff
if: always()
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion prodigy_hf/ner.py
Expand Up @@ -276,7 +276,7 @@ def get_hf_config_labels(hf_mod: TokenClassificationPipeline):


@recipe(
"hf.correct.ner",
"hf.ner.correct",
# fmt: off
dataset=Arg(help="Dataset to write annotations into"),
model=Arg(help="Path to transformer model. Can also point to model on hub."),
Expand Down
2 changes: 1 addition & 1 deletion prodigy_hf/textcat.py
Expand Up @@ -207,7 +207,7 @@ def add_model_predictions(stream, hf_pipeline, model_labels):


@recipe(
"hf.correct.textcat",
"hf.textcat.correct",
# fmt: off
dataset=Arg(help="Dataset to write annotations into"),
model=Arg(help="Path to transformer model. Can also point to model on hub."),
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Expand Up @@ -19,8 +19,8 @@ prodigy_recipes =
hf.upload = prodigy_hf:hf_upload
hf.train.ner = prodigy_hf:hf_train_ner
hf.train.textcat = prodigy_hf:hf_train_textcat
hf.correct.ner = prodigy_hf:hf_ner_correct
hf.correct.textcat = prodigy_hf:hf_textcat_correct
hf.ner.correct = prodigy_hf:hf_ner_correct
hf.textcat.correct = prodigy_hf:hf_textcat_correct

[bdist_wheel]
universal = true
Expand Down

0 comments on commit 35ff5eb

Please sign in to comment.