WICG / handwriting-recognition

Handwriting Recognition Web API Proposal
https://wicg.github.io/handwriting-recognition/
Other
77 stars 17 forks source link

explainer: split hints to constraints and hints #9

Closed wacky6 closed 3 years ago

wacky6 commented 3 years ago

This PR splits optionalHints to modelConstraints and optionalHints.

This allows a recognizer to perform multiple recognitions on different pieces of text. This is desirable since creation of a new recognition object might be expensive.

The term constraint also suggests that certain attributes are essential to recognizer's function (namely language and script).