Introduction

The CAP Babel Project uses the Comparative Agendas Project policy codebook’s major topics to identify the policy areas of texts. In the near future, minor topic coding service will be also available.

The codes assigned are unequivocal, mutually exclusive, and cover all potential policy issues. The codebook distinguishes 21 major policy areas: macroeconomics, civil rights, health, agriculture, labour, education, environment, energy, immigration, transportation, law and crime, social welfare, housing, domestic commerce, defence, technology, foreign trade, international affairs, government operations, public lands and culture.

The 10 CAP domains we are using:

  1. Media
  2. Social media
  3. Parliamentary speech (oral questions, interpellations, bill debates, other plenary speeches)
  4. Legislative (bills, laws, motions, legislative decrees, hearings)
  5. Executive speech
  6. Executive orders
  7. Party manifestos
  8. Judiciary
  9. Budget
  10. Public opinion

Differences compared to the CAP website domains:

  • we added "social media"
  • separated "Parliamentary & Legislative" into two different domains
  • separated "Prime Minister & Executive" into two different domains

Current (08/30/2023) data per domain:

Domain Count
budget 54829
execorder 51436
execspeech 167548
judiciary 7334
legislative 655777
media 299578
parlspeech 741638
party 131967
publicopinion 2343
social 13954

Most of the language models that the CAP Babel Machine uses were fine-tuned on training data containing the label 'None' in addition to the 21 CAP major policy topics, indicating that the given text contains no relevant policy content. We use the label 999 for these cases. Note that some of the models (e.g., Danish legislative, Dutch media) do not recognize this category and thus cannot predict if the row has no policy content.

You can upload your datasets here for automated CAP-coding. If you wish to submit multiple datasets one after another, please wait 5-10 minutes between each of your submissions. There are two possibilities for upload: pre-coded datasets or non-coded datasets. The explanation of the form and the dataset requirement is available here.

The upload requires to fill the following form on metadata regarding the dataset. We kindly ask you to upload your dataset, and in case of a pre-coded dataset, if available, please attach the codebook used besides the dataset.

The non-coded datasets should contain an id and a text column. The column names must be in row 1. You are free to add supplementary variables to the dataset beyond the compulsory ones in the columns following them.

Pre-coded datasets must contain the following columns: id, year, major_topic, text. The column names must be in row 1. Uploading a pre-coded sample is optional, but it can help us with calculating performance metrics and fine-tuning the language model behind CAP Babel Machine. The detailed rules of validations are available here. The mandatory data format of major_topic is numeric. All textual CAP categories must be converted to the appropriate numeric code before uploading. Furthermore, records with no policy content should be coded with 999. You are free to add supplementary variables to the dataset beyond the compulsory ones in the columns following them. Automatic processing requires to follow these rules.

After you upload your dataset and your file is successfully processed, you will receive the CAP-coded dataset and a file that includes the three highest probability category predictions by the CAP Babel model and the corresponding probability (softmax) scores assigned to each label. Please be aware that interpreting softmax scores as absolute model confidences could lead to false assumptions about model performance.
See this paper on softmax scores:
Pearce, Tim, et al. (2021, June 9). Understanding Softmax Confidence and Uncertainty. arXiv:2106.04972. arXiv.
https://doi.org/10.48550/arXiv.2106.04972.

If the files you would like to upload are bigger than 100MB, please reach out to us with the download link attached (such as Dropbox or Google Drive) using our contact form. The non-coded datasets should contain an id and a text column. The column names must be in row 1. You are free to add supplementary variables to the dataset beyond the compulsory ones in the columns following them. All datasets must be uploaded in a .csv file format with UTF-8 encoding. If you have any questions or feedback regarding the CAP Babel Machine, please let us know using our contact form. Please keep in mind that we can only get back to you on Hungarian business days.

Submit a dataset:

Loading...

    The research was supported by the Ministry of Innovation and Technology NRDI Office and the European Union, in the framework of the RRF-2.3.1-21-2022-00004 Artificial Intelligence National Laboratory project.