Skip to main content

encode_features

Function encode_features 

Source
pub fn encode_features(
    extraction: &ExtractionResult,
    nav_result: &NavigationResult,
    url: &str,
    page_type: PageType,
    confidence: f32,
) -> [f32; 128]
Expand description

Encode extraction results + navigation info into a 128-float feature vector.

Returns both the feature vector and computed NodeFlags so the caller can set flags like HAS_PRICE, HAS_MEDIA, HAS_FORM accurately.