Machine learning models/Production/Hungarian Wikipedia article topic

Model card
This page is an on-wiki machine learning model card.
A diagram of a neural network
A model card is a document about a machine learning model that seeks to answer basic questions about the model.
Model Information Hub
Model creator(s)Aaron Halfaker (User:EpochFail) and Amir Sarabadani
Model owner(s)WMF Machine Learning Team (ml@wikimediafoundation.org)
Model interfaceOres homepage
Codedrafttopic Github, ORES training data, and ORES model binaries
Uses PIINo
In production?Yes
Which projects?Hungarian Wikipedia
This model uses article text to predict the likelihood that the article belongs to a set of topics.


Motivation

How can we predict what general topic an article is in? Answering this question is useful for various analyses of Wikipedia dynamics. However, it is difficult to group a very diverse range of Wikipedia articles into coherent, consistent topics manually.

This model, part of the ORES suite of models, analyzes an article to predict its likelihood of belonging to a set of topics. Similar models (though not necessarily with the same performance level or topics, are deployed across about a dozen other projects. There is also a language agnostic article topic model.

This model may be useful for high-level analyses of Wikipedia dynamics (pageviews, article quality, edit trends) and filtering articles.

Users and uses


Use this model for
  • high-level analyses of Wikipedia dynamics such as pageview, article quality, or edit trends — e.g. How are pageview dynamics different between the physics and biology categories?
  • filtering to relevant articles — e.g. filter articles only to those in the music category.
Don't use this model for
  • definitively establishing what topic an article pertains to
  • automated editing of articles or topics without a human in the loop
Current uses

This model is a part of ORES, and generally accessible via API. It is used for high-level analysis of Wikipedia, platform research, and other on-wiki tasks.

Example API call:
https://ores.wikimedia.org/v3/scores/huwiki/1234/articletopic

Ethical considerations, caveats, and recommendations

  • This model was trained on data that is now several years old (from mid-2020). Underlying data drift may skew model outputs.
  • This model uses word2vec as a training feature. Word2vec, like other natural language embeddings, encodes the linguistic biases of underlying datasets — along the lines of gender, race, ethnicity, religion etc. Since Wikipedia has known biases in its text, this model may encode and at times reproduce those biases.
  • This model has highly variable performance across different topics — consult the test statistics below to get a sense of inter-topic performance.

Model

Performance


Test data confusion matrix:

Test data confusion matrix
LabelnTrue positiveFalse positiveFalse negativeTrue Negative
Culture.Biography.Biography*1552614154137277943039
Culture.Biography.Women35862498108835355405
Culture.Food and drink151398552813157700
Culture.Internet culture3266275451219855880
Culture.Linguistics164311704739757604
Culture.Literature55704162140851453260
Culture.Media.Books1732138434810557507
Culture.Media.Entertainment23401064127628456720
Culture.Media.Films2888240348514556311
Culture.Media.Media*14392127061686121943733
Culture.Media.Music3309280050924655789
Culture.Media.Radio3301611691558999
Culture.Media.Software2170175241827456900
Culture.Media.Television2469198648313656739
Culture.Media.Video games208719411464857209
Culture.Performing arts149194854311457739
Culture.Philosophy and religion40032356164741754924
Culture.Sports6230558764317952935
Culture.Visual arts.Architecture2030141661425057064
Culture.Visual arts.Comics and Anime185415263289557395
Culture.Visual arts.Fashion8064853215458484
Culture.Visual arts.Visual arts*53793710166942153544
Geography.Geographical38872579130853754920
Geography.Regions.Africa.Africa*40492762128733154964
Geography.Regions.Africa.Central Africa8805703107258392
Geography.Regions.Africa.Eastern Africa3692331364158934
Geography.Regions.Africa.Northern Africa150394056312657715
Geography.Regions.Africa.Southern Africa6955151804758602
Geography.Regions.Africa.Western Africa15564912959160
Geography.Regions.Americas.Central America138178959210257861
Geography.Regions.Americas.North America56283631199793052786
Geography.Regions.Americas.South America1610109751312657608
Geography.Regions.Asia.Asia*107498632211794547650
Geography.Regions.Asia.Central Asia134993841110357892
Geography.Regions.Asia.East Asia3424270372121955701
Geography.Regions.Asia.North Asia1888138550322957227
Geography.Regions.Asia.South Asia1826126855811057408
Geography.Regions.Asia.Southeast Asia160197462711657627
Geography.Regions.Asia.West Asia2495179470120056649
Geography.Regions.Europe.Eastern Europe49513665128655653837
Geography.Regions.Europe.Europe*16846136103236225940239
Geography.Regions.Europe.Northern Europe36172386123137855349
Geography.Regions.Europe.Southern Europe40562998105835954929
Geography.Regions.Europe.Western Europe52174004121355153576
Geography.Regions.Oceania1853131054312157370
History and Society.Business and economics31921728146432455828
History and Society.Education161273587716557567
History and Society.History61433880226373952462
History and Society.Military and warfare50393575146447153834
History and Society.Politics and government44532632182143654455
History and Society.Society62232897332655252569
History and Society.Transportation4094371438015955091
STEM.Biology4751412662513754456
STEM.Chemistry1620131230816657558
STEM.Computing2449198646328356612
STEM.Earth and environment1882133554713157331
STEM.Engineering2505178671921556624
STEM.Libraries & Information5102892213858796
STEM.Mathematics9907852056358291
STEM.Medicine & Health1939140553416057245
STEM.Physics141995846116657759
STEM.STEM*1852316670185391739904
STEM.Space237222271454256930
STEM.Technology48743669120559753873

Test data sample rates:

Test data sample rates
LabelSamplePopulation
Culture.Biography.Biography*0.2620.123
Culture.Biography.Women0.060.015
Culture.Food and drink0.0250.002
Culture.Internet culture0.0550.003
Culture.Linguistics0.0280.007
Culture.Literature0.0940.015
Culture.Media.Books0.0290.004
Culture.Media.Entertainment0.0390.004
Culture.Media.Films0.0490.011
Culture.Media.Media*0.2430.058
Culture.Media.Music0.0560.024
Culture.Media.Radio0.0060.002
Culture.Media.Software0.0370.001
Culture.Media.Television0.0420.009
Culture.Media.Video games0.0350.003
Culture.Performing arts0.0250.003
Culture.Philosophy and religion0.0670.011
Culture.Sports0.1050.071
Culture.Visual arts.Architecture0.0340.011
Culture.Visual arts.Comics and Anime0.0310.002
Culture.Visual arts.Fashion0.0140.001
Culture.Visual arts.Visual arts*0.0910.018
Geography.Geographical0.0650.024
Geography.Regions.Africa.Africa*0.0680.008
Geography.Regions.Africa.Central Africa0.0150.001
Geography.Regions.Africa.Eastern Africa0.0060
Geography.Regions.Africa.Northern Africa0.0250.001
Geography.Regions.Africa.Southern Africa0.0120.001
Geography.Regions.Africa.Western Africa0.0030.001
Geography.Regions.Americas.Central America0.0230.003
Geography.Regions.Americas.North America0.0950.064
Geography.Regions.Americas.South America0.0270.006
Geography.Regions.Asia.Asia*0.1810.045
Geography.Regions.Asia.Central Asia0.0230.001
Geography.Regions.Asia.East Asia0.0580.011
Geography.Regions.Asia.North Asia0.0320.001
Geography.Regions.Asia.South Asia0.0310.015
Geography.Regions.Asia.Southeast Asia0.0270.006
Geography.Regions.Asia.West Asia0.0420.011
Geography.Regions.Europe.Eastern Europe0.0830.013
Geography.Regions.Europe.Europe*0.2840.076
Geography.Regions.Europe.Northern Europe0.0610.031
Geography.Regions.Europe.Southern Europe0.0680.013
Geography.Regions.Europe.Western Europe0.0880.019
Geography.Regions.Oceania0.0310.015
History and Society.Business and economics0.0540.01
History and Society.Education0.0270.007
History and Society.History0.1040.011
History and Society.Military and warfare0.0850.014
History and Society.Politics and government0.0750.028
History and Society.Society0.1050.013
History and Society.Transportation0.0690.015
STEM.Biology0.080.034
STEM.Chemistry0.0270.002
STEM.Computing0.0410.003
STEM.Earth and environment0.0320.005
STEM.Engineering0.0420.005
STEM.Libraries & Information0.0090.001
STEM.Mathematics0.0170
STEM.Medicine & Health0.0330.006
STEM.Physics0.0240.001
STEM.STEM*0.3120.069
STEM.Space0.040.006
STEM.Technology0.0820.005

Test data performance:

Test data performance
LabelMatch rateFilter rateRecallPrecisionf1AccuracyROC AUCPR AUC
Culture.Biography.Biography*0.1280.8720.9120.8780.8950.9740.9820.953
Culture.Biography.Women0.0160.9840.6970.6190.6560.9890.9780.687
Culture.Food and drink0.0040.9960.6510.4150.5070.9970.9760.477
Culture.Internet culture0.0060.9940.8430.4560.5920.9960.9850.678
Culture.Linguistics0.0070.9930.7120.7580.7340.9960.9730.719
Culture.Literature0.0210.9790.7470.5520.6350.9870.9770.722
Culture.Media.Books0.0050.9950.7990.6390.710.9970.9840.798
Culture.Media.Entertainment0.0070.9930.4550.2470.320.9930.9650.226
Culture.Media.Films0.0110.9890.8320.7750.8020.9960.9840.844
Culture.Media.Media*0.0770.9230.8830.6690.7610.9680.980.866
Culture.Media.Music0.0250.9750.8460.8250.8360.9920.9850.88
Culture.Media.Radio0.0010.9990.4880.8060.6080.9990.9380.438
Culture.Media.Software0.0060.9940.8070.1830.2980.9950.9870.347
Culture.Media.Television0.0090.9910.8040.7490.7760.9960.9850.807
Culture.Media.Video games0.0030.9970.930.7440.8270.9990.990.857
Culture.Performing arts0.0040.9960.6360.4830.5490.9970.9760.575
Culture.Philosophy and religion0.0140.9860.5890.4570.5140.9880.9580.495
Culture.Sports0.0670.9330.8970.9530.9240.990.9810.952
Culture.Visual arts.Architecture0.0120.9880.6980.6310.6620.9920.9790.683
Culture.Visual arts.Comics and Anime0.0030.9970.8230.5230.640.9980.9870.701
Culture.Visual arts.Fashion0.0010.9990.6020.3460.4390.9990.970.303
Culture.Visual arts.Visual arts*0.020.980.690.6220.6540.9870.9690.667
Geography.Geographical0.0250.9750.6630.6230.6430.9830.9710.66
Geography.Regions.Africa.Africa*0.0110.9890.6820.4720.5580.9920.9710.534
Geography.Regions.Africa.Central Africa0.0020.9980.6480.2490.360.9990.9810.266
Geography.Regions.Africa.Eastern Africa0.0010.9990.6310.2920.40.9990.960.195
Geography.Regions.Africa.Northern Africa0.0030.9970.6250.2610.3680.9970.9750.336
Geography.Regions.Africa.Southern Africa0.0020.9980.7410.5210.6120.9990.9760.51
Geography.Regions.Africa.Western Africa0.0010.9990.4130.3660.3880.9990.8810.24
Geography.Regions.Americas.Central America0.0040.9960.5710.5180.5430.9970.9690.442
Geography.Regions.Americas.North America0.0580.9420.6450.7190.680.9610.9630.752
Geography.Regions.Americas.South America0.0060.9940.6810.6650.6730.9960.9750.663
Geography.Regions.Asia.Asia*0.0550.9450.8030.6630.7260.9720.9710.794
Geography.Regions.Asia.Central Asia0.0020.9980.6950.2530.3710.9980.980.305
Geography.Regions.Asia.East Asia0.0130.9870.7890.6990.7420.9940.980.799
Geography.Regions.Asia.North Asia0.0050.9950.7340.1450.2430.9960.9840.202
Geography.Regions.Asia.South Asia0.0120.9880.6940.8480.7640.9930.9730.796
Geography.Regions.Asia.Southeast Asia0.0060.9940.6080.6470.6270.9960.9720.578
Geography.Regions.Asia.West Asia0.0110.9890.7190.6930.7060.9930.9770.73
Geography.Regions.Europe.Eastern Europe0.020.980.740.4850.5860.9870.9750.616
Geography.Regions.Europe.Europe*0.1110.8890.8080.5560.6590.9360.9580.762
Geography.Regions.Europe.Northern Europe0.0270.9730.660.7540.7040.9830.9710.767
Geography.Regions.Europe.Southern Europe0.0160.9840.7390.6010.6630.990.9740.714
Geography.Regions.Europe.Western Europe0.0250.9750.7670.5960.6710.9860.9790.755
Geography.Regions.Oceania0.0130.9870.7070.8380.7670.9930.9760.803
History and Society.Business and economics0.0110.9890.5410.4890.5140.990.9580.472
History and Society.Education0.0060.9940.4560.5420.4950.9930.9610.432
History and Society.History0.0210.9790.6320.3320.4360.9820.9610.486
History and Society.Military and warfare0.0190.9810.7090.5390.6120.9870.9730.668
History and Society.Politics and government0.0240.9760.5910.6830.6340.9810.9540.662
History and Society.Society0.0160.9840.4660.3640.4090.9830.930.37
History and Society.Transportation0.0170.9830.9070.8280.8660.9960.9860.905
STEM.Biology0.0320.9680.8680.9230.8950.9930.9820.931
STEM.Chemistry0.0040.9960.810.3050.4430.9970.9840.544
STEM.Computing0.0070.9930.8110.3050.4440.9950.9860.489
STEM.Earth and environment0.0050.9950.7090.5860.6420.9960.9730.648
STEM.Engineering0.0070.9930.7130.4980.5860.9950.9790.624
STEM.Libraries & Information0.0010.9990.5670.3530.4350.9990.9630.22
STEM.Mathematics0.0010.9990.7930.2340.3620.9990.9810.389
STEM.Medicine & Health0.0070.9930.7250.6260.6720.9950.9790.648
STEM.Physics0.0030.9970.6750.1670.2670.9970.9810.168
STEM.STEM*0.0830.9170.90.7480.8170.9720.9780.896
STEM.Space0.0060.9940.9390.8850.9110.9990.9940.963
STEM.Technology0.0150.9850.7530.2620.3880.9880.9770.51


The training dataset for this model is available here.

Implementation


Model architecture
Model architecture
{
    "type": "GradientBoosting",
    "params": {
        "scale": false,
        "center": false,
        "labels": [
            "Culture.Biography.Biography*",
            "Culture.Biography.Women",
            "Culture.Food and drink",
            "Culture.Internet culture",
            "Culture.Linguistics",
            "Culture.Literature",
            "Culture.Media.Books",
            "Culture.Media.Entertainment",
            "Culture.Media.Films",
            "Culture.Media.Media*",
            "Culture.Media.Music",
            "Culture.Media.Radio",
            "Culture.Media.Software",
            "Culture.Media.Television",
            "Culture.Media.Video games",
            "Culture.Performing arts",
            "Culture.Philosophy and religion",
            "Culture.Sports",
            "Culture.Visual arts.Architecture",
            "Culture.Visual arts.Comics and Anime",
            "Culture.Visual arts.Fashion",
            "Culture.Visual arts.Visual arts*",
            "Geography.Geographical",
            "Geography.Regions.Africa.Africa*",
            "Geography.Regions.Africa.Central Africa",
            "Geography.Regions.Africa.Eastern Africa",
            "Geography.Regions.Africa.Northern Africa",
            "Geography.Regions.Africa.Southern Africa",
            "Geography.Regions.Africa.Western Africa",
            "Geography.Regions.Americas.Central America",
            "Geography.Regions.Americas.North America",
            "Geography.Regions.Americas.South America",
            "Geography.Regions.Asia.Asia*",
            "Geography.Regions.Asia.Central Asia",
            "Geography.Regions.Asia.East Asia",
            "Geography.Regions.Asia.North Asia",
            "Geography.Regions.Asia.South Asia",
            "Geography.Regions.Asia.Southeast Asia",
            "Geography.Regions.Asia.West Asia",
            "Geography.Regions.Europe.Eastern Europe",
            "Geography.Regions.Europe.Europe*",
            "Geography.Regions.Europe.Northern Europe",
            "Geography.Regions.Europe.Southern Europe",
            "Geography.Regions.Europe.Western Europe",
            "Geography.Regions.Oceania",
            "History and Society.Business and economics",
            "History and Society.Education",
            "History and Society.History",
            "History and Society.Military and warfare",
            "History and Society.Politics and government",
            "History and Society.Society",
            "History and Society.Transportation",
            "STEM.Biology",
            "STEM.Chemistry",
            "STEM.Computing",
            "STEM.Earth and environment",
            "STEM.Engineering",
            "STEM.Libraries & Information",
            "STEM.Mathematics",
            "STEM.Medicine & Health",
            "STEM.Physics",
            "STEM.STEM*",
            "STEM.Space",
            "STEM.Technology"
        ],
        "multilabel": true,
        "population_rates": null,
        "ccp_alpha": 0.0,
        "criterion": "friedman_mse",
        "init": null,
        "learning_rate": 0.1,
        "loss": "deviance",
        "max_depth": 5,
        "max_features": "log2",
        "max_leaf_nodes": null,
        "min_impurity_decrease": 0.0,
        "min_impurity_split": null,
        "min_samples_leaf": 1,
        "min_samples_split": 2,
        "min_weight_fraction_leaf": 0.0,
        "n_estimators": 150,
        "n_iter_no_change": null,
        "presort": "deprecated",
        "random_state": null,
        "subsample": 1.0,
        "tol": 0.0001,
        "validation_fraction": 0.1,
        "verbose": 0,
        "warm_start": false,
        "label_weights": {}
    }
}
Output schema
Output schema
{
    "title": "Scikit learn-based classifier score with probability",
    "type": "object",
    "properties": {
        "prediction": {
            "description": "The most likely labels predicted by the estimator",
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "probability": {
            "description": "A mapping of probabilities onto each of the potential output labels",
            "type": "object",
            "properties": {
                "Culture.Biography.Biography*": {
                    "type": "number"
                },
                "Culture.Biography.Women": {
                    "type": "number"
                },
                "Culture.Food and drink": {
                    "type": "number"
                },
                "Culture.Internet culture": {
                    "type": "number"
                },
                "Culture.Linguistics": {
                    "type": "number"
                },
                "Culture.Literature": {
                    "type": "number"
                },
                "Culture.Media.Books": {
                    "type": "number"
                },
                "Culture.Media.Entertainment": {
                    "type": "number"
                },
                "Culture.Media.Films": {
                    "type": "number"
                },
                "Culture.Media.Media*": {
                    "type": "number"
                },
                "Culture.Media.Music": {
                    "type": "number"
                },
                "Culture.Media.Radio": {
                    "type": "number"
                },
                "Culture.Media.Software": {
                    "type": "number"
                },
                "Culture.Media.Television": {
                    "type": "number"
                },
                "Culture.Media.Video games": {
                    "type": "number"
                },
                "Culture.Performing arts": {
                    "type": "number"
                },
                "Culture.Philosophy and religion": {
                    "type": "number"
                },
                "Culture.Sports": {
                    "type": "number"
                },
                "Culture.Visual arts.Architecture": {
                    "type": "number"
                },
                "Culture.Visual arts.Comics and Anime": {
                    "type": "number"
                },
                "Culture.Visual arts.Fashion": {
                    "type": "number"
                },
                "Culture.Visual arts.Visual arts*": {
                    "type": "number"
                },
                "Geography.Geographical": {
                    "type": "number"
                },
                "Geography.Regions.Africa.Africa*": {
                    "type": "number"
                },
                "Geography.Regions.Africa.Central Africa": {
                    "type": "number"
                },
                "Geography.Regions.Africa.Eastern Africa": {
                    "type": "number"
                },
                "Geography.Regions.Africa.Northern Africa": {
                    "type": "number"
                },
                "Geography.Regions.Africa.Southern Africa": {
                    "type": "number"
                },
                "Geography.Regions.Africa.Western Africa": {
                    "type": "number"
                },
                "Geography.Regions.Americas.Central America": {
                    "type": "number"
                },
                "Geography.Regions.Americas.North America": {
                    "type": "number"
                },
                "Geography.Regions.Americas.South America": {
                    "type": "number"
                },
                "Geography.Regions.Asia.Asia*": {
                    "type": "number"
                },
                "Geography.Regions.Asia.Central Asia": {
                    "type": "number"
                },
                "Geography.Regions.Asia.East Asia": {
                    "type": "number"
                },
                "Geography.Regions.Asia.North Asia": {
                    "type": "number"
                },
                "Geography.Regions.Asia.South Asia": {
                    "type": "number"
                },
                "Geography.Regions.Asia.Southeast Asia": {
                    "type": "number"
                },
                "Geography.Regions.Asia.West Asia": {
                    "type": "number"
                },
                "Geography.Regions.Europe.Eastern Europe": {
                    "type": "number"
                },
                "Geography.Regions.Europe.Europe*": {
                    "type": "number"
                },
                "Geography.Regions.Europe.Northern Europe": {
                    "type": "number"
                },
                "Geography.Regions.Europe.Southern Europe": {
                    "type": "number"
                },
                "Geography.Regions.Europe.Western Europe": {
                    "type": "number"
                },
                "Geography.Regions.Oceania": {
                    "type": "number"
                },
                "History and Society.Business and economics": {
                    "type": "number"
                },
                "History and Society.Education": {
                    "type": "number"
                },
                "History and Society.History": {
                    "type": "number"
                },
                "History and Society.Military and warfare": {
                    "type": "number"
                },
                "History and Society.Politics and government": {
                    "type": "number"
                },
                "History and Society.Society": {
                    "type": "number"
                },
                "History and Society.Transportation": {
                    "type": "number"
                },
                "STEM.Biology": {
                    "type": "number"
                },
                "STEM.Chemistry": {
                    "type": "number"
                },
                "STEM.Computing": {
                    "type": "number"
                },
                "STEM.Earth and environment": {
                    "type": "number"
                },
                "STEM.Engineering": {
                    "type": "number"
                },
                "STEM.Libraries & Information": {
                    "type": "number"
                },
                "STEM.Mathematics": {
                    "type": "number"
                },
                "STEM.Medicine & Health": {
                    "type": "number"
                },
                "STEM.Physics": {
                    "type": "number"
                },
                "STEM.STEM*": {
                    "type": "number"
                },
                "STEM.Space": {
                    "type": "number"
                },
                "STEM.Technology": {
                    "type": "number"
                }
            }
        }
    }
}
Example input and output
Input:
https://ores.wikimedia.org/v3/scores/huwiki/1234/articletopic

Output:

Example output
{
    "huwiki": {
        "models": {
            "articletopic": {
                "version": "1.4.0"
            }
        },
        "scores": {
            "1234": {
                "articletopic": {
                    "score": {
                        "prediction": [
                            "Geography.Regions.Asia.East Asia",
                            "Geography.Regions.Europe.Europe*",
                            "STEM.STEM*"
                        ],
                        "probability": {
                            "Culture.Biography.Biography*": 0.3423533920926803,
                            "Culture.Biography.Women": 0.14025995403786506,
                            "Culture.Food and drink": 0.06340726339907797,
                            "Culture.Internet culture": 0.011131262002287472,
                            "Culture.Linguistics": 0.04803618594888942,
                            "Culture.Literature": 0.022006683732088216,
                            "Culture.Media.Books": 0.002187089040235113,
                            "Culture.Media.Entertainment": 0.15309575643241796,
                            "Culture.Media.Films": 0.034026455544947425,
                            "Culture.Media.Media*": 0.20341149710773634,
                            "Culture.Media.Music": 0.0497533083246081,
                            "Culture.Media.Radio": 0.32875096388132496,
                            "Culture.Media.Software": 0.013034094135796932,
                            "Culture.Media.Television": 0.0031210534375715336,
                            "Culture.Media.Video games": 0.00030343872173972046,
                            "Culture.Performing arts": 0.005608603834940765,
                            "Culture.Philosophy and religion": 0.08066624396157131,
                            "Culture.Sports": 0.06433894067592255,
                            "Culture.Visual arts.Architecture": 0.03750949389175476,
                            "Culture.Visual arts.Comics and Anime": 0.0064514547243535985,
                            "Culture.Visual arts.Fashion": 0.05307244012171412,
                            "Culture.Visual arts.Visual arts*": 0.11900694660877364,
                            "Geography.Geographical": 0.032374625359398314,
                            "Geography.Regions.Africa.Africa*": 0.15894948721508503,
                            "Geography.Regions.Africa.Central Africa": 0.016011778190990485,
                            "Geography.Regions.Africa.Eastern Africa": 0.004741053756007876,
                            "Geography.Regions.Africa.Northern Africa": 0.0244144581524136,
                            "Geography.Regions.Africa.Southern Africa": 0.0019768365502830605,
                            "Geography.Regions.Africa.Western Africa": 3.962206086248686e-05,
                            "Geography.Regions.Americas.Central America": 0.00522749251093348,
                            "Geography.Regions.Americas.North America": 0.014687908835933414,
                            "Geography.Regions.Americas.South America": 0.002403901278264949,
                            "Geography.Regions.Asia.Asia*": 0.20487191607636618,
                            "Geography.Regions.Asia.Central Asia": 0.09112897244334056,
                            "Geography.Regions.Asia.East Asia": 0.9998386100569907,
                            "Geography.Regions.Asia.North Asia": 0.0027527477451360595,
                            "Geography.Regions.Asia.South Asia": 0.020285604017724872,
                            "Geography.Regions.Asia.Southeast Asia": 0.03250982686466025,
                            "Geography.Regions.Asia.West Asia": 0.05840215484971228,
                            "Geography.Regions.Europe.Eastern Europe": 0.03298542948603228,
                            "Geography.Regions.Europe.Europe*": 0.5315974960652942,
                            "Geography.Regions.Europe.Northern Europe": 0.007914585235952828,
                            "Geography.Regions.Europe.Southern Europe": 0.09252560636319572,
                            "Geography.Regions.Europe.Western Europe": 0.021413181244936737,
                            "Geography.Regions.Oceania": 0.026964542276338526,
                            "History and Society.Business and economics": 0.11345817838571329,
                            "History and Society.Education": 0.018546943483473882,
                            "History and Society.History": 0.16482995511902204,
                            "History and Society.Military and warfare": 0.057955265993041155,
                            "History and Society.Politics and government": 0.0422117254411273,
                            "History and Society.Society": 0.20169635418355597,
                            "History and Society.Transportation": 0.015610557061165244,
                            "STEM.Biology": 0.037673572379875016,
                            "STEM.Chemistry": 0.010794729056374292,
                            "STEM.Computing": 0.04398691739762987,
                            "STEM.Earth and environment": 0.0039011304821686735,
                            "STEM.Engineering": 0.16717936084988483,
                            "STEM.Libraries & Information": 0.022633922980662434,
                            "STEM.Mathematics": 0.08494932357374003,
                            "STEM.Medicine & Health": 0.010577875534037367,
                            "STEM.Physics": 0.0009472592704866106,
                            "STEM.STEM*": 0.7982423641999686,
                            "STEM.Space": 0.003438360400580638,
                            "STEM.Technology": 0.08261264399841732
                        }
                    }
                }
            }
        }
    }
}

Data


Data pipeline

The data to train was fetched from a set of revision IDs. Then various pieces of information about the revision were extracted using automated processes, and the revision text was fed into word2vec to get an article embedding. Finally, labels are derived from the mid-level WikiProject categories that the article is associated with.

Training data

If available, the training dataset can be found here. Training data was automatically and randomly separated from test data during training using the drafttopic git repository (which trains both drafttopic and articletopic models).

Test data

Test data was automatically and randomly split off from train data using the drafttopic git repository (which trains both drafttopic and articletopic models). The model then makes a prediction on that data, which is compared to the underlying ground truth to calculate performance statistics.

Licenses


Citation


Cite this model card as:

@misc{
  Triedman_Bazira_2023_Hungarian_Wikipedia_article_topic,
  title={ Hungarian Wikipedia article topic model card },
  author={ Triedman, Harold and Bazira, Kevin },
  year={ 2023 },
  url={ https://meta.wikimedia.org/wiki/Machine_learning_models/Production/Hungarian_Wikipedia_article_topic }
}
Category:Machine learning models Category:Hungarian Wikipedia
Category:Hungarian Wikipedia Category:Machine learning models