Skip to content

WP-M1: the scope #302

Open
Open

Description

@tamnd

This milestone finds each Wikipedia article that is in scope. The scope is a union of signals and a classifier, because the WikiProject Mathematics tag covers only 70.5% of the titles that math2 cites.

Spec: corpus wikipedia WP14.3, with WP1.2, WP1.3, WP2.2 to WP2.4.

Acceptance

  • manifests/wikipedia/scope.tsv exists, with its count and the signals of each article.
  • reports/scope.md gives the count by signal, type, class and MSC code at two digits, and by Wikidata class.
  • On gold set S, the scope recall is 99% and the precision is 95%.
  • The estimates of WP13.2 for the scope are counts. WQ04 is closed.

Checklist

Not in this milestone

  • The model pass scope. It runs at WP-M5 for the candidates that the rules cannot decide.

Activity

  1. added
    type: feature
    milestone
    area: ingest
    area: corpus
    on Oct 27, 2026
  2. tamnd commented on Oct 27, 2026

    @tamnd
    OwnerAuthor

    tamnd/wikipedia-cli#23 is merged. It adds wiki dump tables, which downloads the SQL table dumps of one date and checks the sha1 of each file. With no table name, it gets the 9 tables that the base build reads, which are 18.6 GB for the enwiki dump 20261001. With --date latest, it takes the newest dump in which each table job is done. The next PR adds wiki dump load, and then the checklist item for the two commands is done. The free disk space on the servers is 3 to 4 GB, so the full tables do not fit. For this reason, wiki dump load can stream a table from the dump host and keep only the rows that its filters select.

  3. tamnd commented on Oct 27, 2026

    @tamnd
    OwnerAuthor

    tamnd/wikipedia-cli#24 is merged. It adds wiki dump load, which loads a SQL table dump into a SQLite store. The command can stream a table from the dump host, and it does not write the dump file to disk. When the connection drops, it continues from the byte that it reached. The filters --columns, --where and --in keep only the rows that the scope needs, so the base build fits in the 3 to 5 GB of free disk on the servers. The first pass of the scope runs now on server2. It loaded the 9,240,158 category targets of linktarget (of 131,511,582 rows), and it loads the subcategory links of categorylinks next. With #23, this closes the item for wiki dump tables and wiki dump load.

  4. tamnd commented on Oct 27, 2026

    @tamnd
    OwnerAuthor

    PR tamnd/wikipedia-cli#25 is merged. It adds wiki assess, which lists the pages that one or more WikiProjects tag, with the class and the importance of each page. On 27 October 2026 it gave 78,168 articles for the projects of signals S1 to S3 in a few minutes. Mathematics has 29,858 of them. The command is in wikipedia-cli v0.4.1.

  5. tamnd commented on Oct 27, 2026

    @tamnd
    OwnerAuthor

    PR #319 is merged. It adds m2 wp scope, which computes the signals S1 to S6, S8 and S9 from the scope store and applies the rule classifier of WP1.3. When the store does not have a table that a signal needs, the command prints the wiki dump load command for that table and stops, so the loads can run in stages on a host with little disk. Signal S5 has 21,475 titles. Of these, 14,209 come from the Wikidata identifier properties of mathematics, and the rest come from the 56 classes in classes.yaml with two levels of subclass. The run on the dump of 1 October 2026 is in progress. The category tree has 1,363 categories, and the cat_pages load is running. S7 waits for the wikitext of WP-M2.

  6. tamnd commented on Oct 28, 2026

    @tamnd
    OwnerAuthor

    PR #320 is merged. It adds m2 wp gold draw, which draws gold set S from candidates.tsv in three strata (500 with S1 or S2, 500 with S4 and no project tag, 1,000 with one weak signal), and m2 wp gold measure, which compares the marks with the scope list and writes reports/gold-s.md. The precision and the recall are weighted by the population of each stratum. The script scripts/gold/mark.py of wikipedia-math will draft the marks with chatgpt-tool. A person must check each draft mark.

  7. tamnd commented on Oct 28, 2026

    @tamnd
    OwnerAuthor

    PR #321 is merged. It adds the audit rules Y01 and Y14. Y01 is hard: each article of scope.tsv has an article state of WP1.8, and each row of the new file stopped.tsv names a page of the scope list and a reason of WP1.8. Y14 is soft: it lists each candidate that two or more signals name and that the classifier rejects with a confidence below 0.9. The rule classifier gives 0.9 to two weak signals, so Y14 finds rows only after the model pass of WP7.2.

  8. tamnd commented on Oct 28, 2026

    @tamnd
    OwnerAuthor

    PR tamnd/wikipedia-math#5 is merged. It adds the category table of signal S6 and the script of the scope model pass. With the rules of #323, the dump 20261001 gives 93,796 candidates. 38,854 of them are in scope (37,901 from a strong signal and 953 from S6 near), 24,185 have only S3 and are out, and 30,757 are pending. The model pass now runs on server3 for the pending candidates. It has a verdict for 7,815 of them, and it needs about 10 more hours. Server2 has no signed-in account for chatgpt-tool, so server3 does both shards. Gold set S is drawn with 2,000 rows (500 strong, 500 cited, 1,000 with one weak signal). The marks come after the model pass.

  9. tamnd commented on Oct 28, 2026

    @tamnd
    OwnerAuthor

    PR tamnd/wikipedia-math#6 is merged. It adds the candidate list (93,796 rows), the scope list, the report reports/scope.md and gold set S with 2,000 rows that are not marked yet. The rules put 38,854 articles in scope, and 30,757 weak candidates wait for the scope model pass. The audit gives a pass for Y01.

  10. tamnd commented on Oct 28, 2026

    @tamnd
    OwnerAuthor

    PR #324 is merged. It adds the pages of the Wikipedia scope to the site: a summary page with the counts by rule, by signal and by class, a list for each letter, and the file api/wikipedia/scope.json. The flag -wikipedia of m2 site build names the checkout.

  11. tamnd commented on Oct 28, 2026

    @tamnd
    OwnerAuthor

    PR #325 is merged. It splits each letter list of the Wikipedia scope into pages of 1,500 articles, so that each page is in the weight budget of m2 site check.

  12. tamnd commented on Oct 28, 2026

    @tamnd
    OwnerAuthor

    PR tamnd/math2#159 is merged. The deploy script and the Pages workflow now check out tamnd/wikipedia-math and build the Wikipedia pages. The pages are live at https://math2.tamnd.com/wikipedia/.

  13. tamnd commented on Oct 28, 2026

    @tamnd
    OwnerAuthor

    PR #326 is merged. The objects files and the census files of the analysis plane are now Markdown with a YAML header, not JSON Lines and JSON. A person can read them on GitHub. The pilot files of tamnd/wikipedia-math are converted in the next data PR.

  14. tamnd commented on Oct 28, 2026

    @tamnd
    OwnerAuthor

    PR tamnd/wikipedia-math#7 is merged. It converts the 20 objects files and the 20 census files of the pilot to Markdown with a YAML header, with m2 v0.4.4. The pilot still gives 1183 objects and 263 cues with 0 gaps. It also makes scripts/scope/llm.py ask again for the rows of an answer that is cut short.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: corpusarea: ingestmilestonetype: feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions