Documentation
¶
Overview ¶
Package task gives each task of tutor's measurements — a task of a bank, solved on a sheet; a page of the workbook; an essay — the task of spec's module format 0.3 it is, with its checks: formatv0.Task. module-kit takes a task of the format alone: its open view and that view's digest, by which a sample of the eval protocol names its task, and the verdicts on an observation, by which the runner gets the outcome and the trap of the truth of a sample's markup. tutor's banks are not modules, and their files keep their own formats: the tasks are built here, by the kind of each file's tasks.
Index ¶
Constants ¶
const ( SkillWorkbook formatv0.SkillID = "workbook" SkillEssay formatv0.SkillID = "essay" Band formatv0.BandID = "measurement" Difficulty = 1 )
The closed fields that task.schema.json requires of every task and that a measurement has no use for: no engine picks a task of tutor's by its skills, band or difficulty, and no module gives them. A task's skill is the kind of its task — SkillWorkbook and SkillEssay on a page and an essay —, its band Band and its difficulty Difficulty. None of them is in the open view, so none changes its digest.
const WorkbookStatement = "Впиши ответы в окошки."
WorkbookStatement is the statement of each page of the workbook: its file gives the items of a page, and no statement.
Variables ¶
This section is empty.
Functions ¶
func Essay ¶
Essay is an essay's task, essay-01 for the first: its topic, a handwriting sheet with lines, and one answer slot, the whole sheet, a work as a whole, whose check is the rubric: the texts of its criteria in its order. The format gives a criterion no ID, and the eval protocol names a criterion by its place in the rubric, from 1: sample.Criteria in that order. What code wrote for the essay, its title and text, is no part of the task.
func Page ¶
func Page(p *sample.WorkbookPage) formatv0.Task
Page is a page of the workbook, workbook-01 for the first: WorkbookStatement, a workbook, and an item to each of the page's, a line of its text with a box for each "[ ]", its pieces of text trimmed, as the format's vectors write a line. Each box has its check: number, or fraction with its form, and the trap values. The format wants a solution of a task whose items have verdicts, and the workbook's file gives none: the solution is each item's line with the keys in its boxes. The page is one as sample.ReadWorkbook takes it, with a box to each "[ ]" of an item's text: Page panics on an item whose boxes do not match its text.
func Sheet ¶
Sheet is the task of a bank, solved on a sheet: its statement; a handwriting sheet, of the format's default grid, as the format has no sheet without one; and one item whose one answer slot is anywhere on the sheet, where AI finds the final answer, as the measurement's judge and reading find it. The slot's check is number, with the value of the bank's key, sample.KeyOf, as the reading's verdict takes it. The bank's traps are the task's traps, those that AI may name from the kind of mistake in the work: a bank gives no values of them, so the check has no trap values and a wrong value is not_yet with no trap. The solution is a paragraph to a line, and the leaks are the leak phrases.