task

package
v0.1.74 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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.

View Source
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

func Essay(rubric []sample.Criterion, e *sample.Essay) formatv0.Task

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

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

func Sheet(t *sample.Task) formatv0.Task

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.

func SheetItem added in v0.1.8

func SheetItem(key string) formatv0.Item

SheetItem is the one item of a sheet's task: an answer slot bound anywhere, whose check is number with the key's value. The reading judges an observation by it, and the report of the reading joins the observations of a pair by it, with the key that the log tells.

Types

type File

type File struct {
	Language formatv0.LanguageTag
	Tasks    []formatv0.Task
}

File is a file of the measurement's tasks: the language of its texts, and its tasks in its order.

func Read

func Read(data []byte) (*File, error)

Read reads a file of tasks by the format it declares — a bank, the workbook or the essays —, as strictly as anywhere else, and builds its tasks. A bank whose key gives no number is refused: the check of its sheet would have no key.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL