Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TransformValue ¶
TransformValue applies an optional transform and type coercion to a raw string.
Types ¶
type HealthStats ¶
HealthStats tracks extraction quality across a batch of pages.
func ComputeHealth ¶
func ComputeHealth(result *Result) *HealthStats
ComputeHealth analyzes an extraction result and returns health stats.
func (*HealthStats) NeedsReInference ¶
func (h *HealthStats) NeedsReInference(threshold float64) bool
NeedsReInference returns true if the success rate is below the threshold.
func (*HealthStats) SuccessRate ¶
func (h *HealthStats) SuccessRate() float64
SuccessRate returns the percentage of fields that were populated.
Click to show internal directories.
Click to hide internal directories.