betting_combat.feeds.pedigree
pedigree.py — a fighter’s pedigree before the UFC, read from his UFC.com page’s text (the ‘Fighting style’ label, Fighter Facts, Q&A) by rules: no model, no cost, the same answer every run.
read(style, facts, qa) the fields of ``contracts.profiles.Pedigree`` (levels: ``LEVELS``), with the sentences that say them (``evidence``)The research’s schema and rules (fight_level/f06_pedigree): only the fighter himself (a
sentence about a relative, a coach or a teammate is skipped), only before his UFC debut (a
sentence about the UFC is skipped for levels and titles), unknown when the text does not say
(never ‘none’ from silence), combat sambo / hand-to-hand / pankration are mixed combat (not
judo-sambo). Each level field takes the highest level any sentence reaches. A question never
speaks for him (‘Did you wrestle in college?’ answered ‘No’ says nothing); old pages run their
questions together without stops: they are split on the questions’ own words.
Functions
read
read(style: str | None, facts: list[str], qa: dict[str, str]) -> dict[str, Any]The pedigree fields from the page’s text (see the module doc).