Decision ParsingΒΆ
Validate and parse unstructured data by asking a decision model, and judge existing columns with semantic checks. See the decision parsing guide and the tutorial for how to use these objects.
Question TypesΒΆ
A decision model answers typed questions; the question type says what shape
the answer has. These are the parser objects passed to ParsedField /
ParsedColumn.
A question that selects one of the column's options. |
|
A question that places the state on the column's ordered scale. |
|
A yes/no question, answered with a calibrated probability. |
|
Reports how certain the model was about another column. |
ProvidersΒΆ
Something that can answer a set of typed questions about a state. |
|
Answers deterministically from a hash of the state. |
|
Wraps a real provider and records every answer to a cassette. |
|
Serves answers from a cassette; never touches the network. |
ConfigurationΒΆ
Set the provider for the current process. |
|
Return the active provider, or |
|
Use a provider for the duration of a block. |
|
Make |
|
What a provider can be asked; the shared vocabulary if it does not say. |
|
Whether decision calls are permitted at all. |
Semantic ChecksΒΆ
Caching and InspectionΒΆ
Keeps answers for the lifetime of the process. |
|
Keeps answers in a SQLite file, so they survive the process. |
|
What a validation would send, and roughly what it would cost. |
Types and ErrorsΒΆ
One answer, normalized across providers. |
|
What a provider's model can be asked, as opposed to how fast. |
|
Throughput limits a provider publishes, used to pace requests. |
|
Raised when a decision column is validated with no provider set. |
|
Raised when a provider's model cannot be asked a schema's question. |
Question is a type alias (a union of the three question kinds) rather than
an instantiable class; it appears in the signatures of the objects above.