@ines
Thanks for replying and detailed information!
Following your video tutorial, I wrote custom recipe recipe.py
as below.
import prodigy
from prodigy.components.loaders import JSONL
from prodigy.util import split_string
@prodigy.recipe(
"grammar-error",
dataset=("The dataset to use", "positional", None, str),
source=("The source data as a JSONL file", "positional", None, str),
)
def grammar_error(dataset, source):
stream = JSONL(source)
blocks = [{"view_id": "diff"}, {"view_id": "choice"}]
options = [
{"id": "orthography", "text": "orthography"},
{"id": "spelling", "text": "spelling"},
{"id": "verb", "text": "verb"},
{"id": "form", "text": "form"},
{"id": "tense", "text": "tese"},
{"id": "sva", "text": "sva"}
]
return {
"stream": stream,
"dataset": dataset,
"view_id": "blocks",
"config": {
"labels": options,
"blocks": blocks
}
}
Then, run the below command.
prodigy grammar-error gec dataset.jsonl -F ./recipe.py
However, the following message is displayed when I launched the server.
Oops, something went wrong:(
You might have come across a bug in Prodigy's web app β sorry about that. We'd love to fix this, so feel free to open an issue on the Prodigy Support Forum and include the steps that led to this message.
How do I fix this error?