Verify feature extraction accuracy
mainUse the provided sanity check scripts to ensure your JavaScript-based feature extraction matches Chrome's native implementation.
Check derived features:
check_derived_features.py compares features between the JS implementation and Chrome's native implementation (requires Chrome to be running with --distillability-dev).
- To compare features from the original page:
--features <path> - To compare features from MHTML archives:
--features <path> --from-mhtml
Check distilled content:
check_distilled_mhtml.py compares the distilled content from the original page against the content distilled from the MHTML archive. They should be identical.
Usage:
./check_derived_features.py --features out_dir/feature-derived
./check_distilled_mhtml.py --dir out_dir