Asercje deterministyczne: format, schemat, dopasowanie tekstu

Deterministic assertions: format, schema and string checks · id assertionchecks · aliases: code assertions, string match, regex checks, schema validation, asercje, deterministic graders

Gradery kodowe sprawdzające odpowiedzi regułami: dopasowanie dokładne lub regex, walidacja schematu, długość, obecność słów kluczowych.

Code graders that check outputs with rules: exact or regex match, schema validation, length and keyword presence.

In one sentence

Proste reguły w programie sprawdzają odpowiedź modelu: czy ma właściwy format, zawiera wymagane słowo albo nie przekracza długości.

Simple rules in a program check a model's answer: right format, a required word present, or length within limits.

Problem it solves

Część błędów jest banalna do wykrycia, a sprawdzanie ich drugim modelem albo ręcznie marnuje czas i pieniądze.

Some errors are trivial to detect, and checking them with a second model or by hand wastes time and money.

What it does

Jak bramka na lotnisku, która natychmiast wychwytuje oczywiste rzeczy; trudniejsze przypadki trafiają dopiero do człowieka lub sędziego.

Like an airport gate that instantly catches the obvious items; only harder cases go on to a person or a judge.

Everyday example

Formularz wypełniany przez asystenta musi mieć poprawną datę i kod pocztowy; reguła odrzuca odpowiedź, zanim ktoś ją zobaczy.

A form filled by an assistant needs a valid date and postcode; a rule rejects the answer before anyone sees it.

This concerns you if you…

Sources