Numérisation des débats parlementaires australiens, 1998
MaisonMaison > Blog > Numérisation des débats parlementaires australiens, 1998

Numérisation des débats parlementaires australiens, 1998

Jul 01, 2023

Données scientifiques volume 10, Numéro d'article : 567 (2023) Citer cet article

242 accès

12 Altmétrique

Détails des métriques

La connaissance publique de ce qui se dit au Parlement est un principe de la démocratie et une ressource essentielle pour la recherche en sciences politiques. En Australie, suivant la tradition britannique, le compte rendu écrit de ce qui se dit au Parlement est connu sous le nom de Hansard. Bien que le Hansard australien ait toujours été accessible au public, il a été difficile à utiliser à des fins d'analyse de texte à grande échelle aux niveaux macro et micro, car il n'était disponible qu'au format PDF ou XML. Suivant l'exemple du projet Linked Parlementary Data qui a permis d'atteindre cet objectif pour le Canada, nous fournissons une nouvelle base de données rectangulaire complète et de haute qualité qui capture les débats parlementaires australiens de 1998 à 2022. La base de données est accessible au public et peut être liée. à d’autres ensembles de données tels que les résultats des élections. La création et l'accessibilité de cette base de données permettent d'explorer de nouvelles questions et constituent une ressource précieuse tant pour les chercheurs que pour les décideurs politiques.

Le compte rendu écrit officiel des débats parlementaires, officiellement connu sous le nom de Hansard1, joue un rôle fondamental en retraçant l'histoire des débats politiques et en facilitant l'exploration de questions de recherche précieuses. Née au Parlement britannique, la production du Hansard est devenue une tradition dans de nombreux autres pays du Commonwealth, comme le Canada et l'Australie2. Compte tenu du contenu et de l’ampleur de ces documents, ils revêtent une importance particulière, en particulier dans le contexte de la recherche en sciences politiques. Dans le cas du Canada, le Hansard a été numérisé de 1901 à 20193. Disposer d'une version numérisée du Hansard permet aux chercheurs d'effectuer une analyse de texte et une modélisation statistique. Suivant l'exemple de ce projet, nous introduisons dans cet article une base de données similaire pour l'Australie. Il s'agit d'ensembles de données individuels pour chaque jour de séance de la Chambre des représentants de mars 1998 à septembre 2022, contenant des détails sur tout ce qui a été dit au Parlement sous une forme facilement utilisable par les chercheurs. Avec le développement d’outils d’analyse de textes à grande échelle, cette base de données servira de ressource pour comprendre le comportement politique en Australie au fil du temps.

Il existe une grande variété d’applications potentielles de cette base de données. Par exemple, en Australie, on s'inquiète beaucoup du déclin de la « qualité » du débat sur les politiques publiques (quelle que soit la définition qu'on donne à ce terme). Notre ensemble de données pourrait être utilisé pour déterminer si la situation s’aggrave réellement d’une manière ou d’une autre et, si oui, pourquoi. Nous pourrions également nous demander si certaines sous-populations sont correctement représentées dans les débats parlementaires. Par exemple, on craint souvent que les zones régionales soient négligées par rapport aux zones métropolitaines. Là encore, notre base de données pourrait être utilisée pour examiner si cela a changé au fil du temps. Nous avons développé notre base de données de manière à pouvoir la relier à des bases de données similaires d'autres pays, ce qui permettrait une analyse comparative. Par exemple, nous pourrions être intéressés par la façon dont l’orientation politique d’un parlement change en fonction de divers événements mondiaux tels que des pandémies ou des guerres. Un lien international fournit un cas de comparaison dans lequel les problèmes nationaux sont différents alors que les problèmes internationaux sont communs. À titre d'exemple d'activation de ce lien, nous avons inclus les identifiants PartyFacts (https://partyfacts.herokuapp.com) dans notre base de données. Cela devrait permettre de relier notre base de données à d'autres grands projets de collecte de discours parlementaires, tels que ParlaMint4, ParlSpeech5, ParlEE6 et MAPLE7.

La Chambre des représentants australienne, souvent appelée « la Chambre », remplit un certain nombre de fonctions gouvernementales cruciales, telles que la création de nouvelles lois et la surveillance des dépenses publiques8, ch. 1. Les politiciens à la Chambre sont appelés membres du Parlement (MP). La Chambre fonctionne selon une configuration de chambres parallèles, ce qui signifie qu'il existe deux lieux de débat où se déroulent les débats : la Chambre et la Chambre de la Fédération. Les séances de la Chambre suivent un ordre des travaux prédéfini, régi par des règles de procédure appelées règlements8, ch. 8. Une journée de séance typique à la Chambre comprend un certain nombre de délibérations, notamment des débats sur les affaires du gouvernement, des déclarations de députés de 90 secondes et l'heure des questions8, ch. 8. La Chambre de la Fédération a été créée en 1994 en tant que lieu de débat subordonné à la Chambre. Cela permet une meilleure gestion du temps consacré aux affaires de la Chambre puisque ses délibérations se déroulent simultanément avec celles de la Chambre8, ch. 21. Les séances de la Chambre de la Fédération diffèrent de celles de la Chambre en termes d'ordre des travaux et de portée des débats. Les questions commerciales discutées à la Chambre de la Fédération se limitent en grande partie aux étapes intermédiaires de l'élaboration du projet de loi et aux affaires des députés8, ch. 21. C’est l’enregistrement et la compilation de ces débats sur lesquels se fonde le Hansard, et il est essentiellement, mais pas entièrement, textuel.

/p>/p>/p>/p>/p>/p>/p>/p>/p>/p>/p>/p>/p>/p>/p>/p>/p>/p>/p>/p> and serves as a container for the entire document. This parent node may have up to four child nodes, where the first child node contains details on the specific sitting day. Next, contains all proceedings of the Chamber, contains all proceedings of the Federation Chamber, and contains Question Time proceedings. The Federation Chamber does not meet on every sitting day, so this child element is not present in every XML file. The use of separate child nodes allows for the distinction of proceedings between the Chamber and Federation Chamber. The structure of the and nodes are generally the same, where the proceeding begins with which is followed by a series of debates. Debate nodes can contain a child node which has a child node nested within it. That said, sometimes is not nested within . Each of these three elements (i.e., , , and ) as well as their respective sub-elements contain important information on the topic of discussion, who is speaking, and what is being said. The node within each one contains the bulk of the text associated with that debate or sub-debate. A typical node begins with a sub-node, providing information on the MP whose turn it is to speak and the time of their first statement. Unsurprisingly, speeches rarely go uninterrupted in parliamentary debate settings — they are often composed of a series of interjections and continuations. These statements are categorized under different sub-nodes depending on their nature, such as or . The final key component of Hansard is Question Time, in which questions and answers are classified as unique elements. More detail on the purpose and processing of Question Time will follow./p> (highlighted in blue), followed by a child element (highlighted in yellow) with sub-child elements such as the date and parliament number, which are all highlighted in pink. Next, there is the child element containing everything that takes place in the Chamber, , which is also highlighted in yellow in Fig. 1. As previously mentioned, the first sub-node of is . The structure of this can be seen between the nodes highlighted in green in Fig. 1, where the content we parse from the business start is highlighted in orange./p> versus . The next key task stemmed from the fact that the raw text data were not separated by each statement when parsed. In other words, any interjections, comments made by the Speaker or Deputy Speaker and continuations within an individual speech were all parsed together as a single string. As such, the name, name ID, electorate and party details were only provided for the person whose turn it was to speak. There were many intricacies in the task of splitting these speeches in a way that would be generalizable across sitting days. Details on these are provided later./p> content, and some days did not have a Federation Chamber proceeding. To improve the generalizability of these scripts, if-else statements were embedded within the code wherever an error might arise due to a missing element. For example, the entire Federation Chamber block of code is wrapped in an if-else statement for each script, so that it only executes if what the code attempts to parse exists in the file./p> in all XML files prior to 14 August 2012. Having developed our first script based on Hansard from recent years, all XPath expressions for parsing Federation Chamber proceedings contain the specification. To avoid causing issues in our first script which successfully parses about 10 years of Hansard, we created a second script where we replaced all occurrences of with . After making this modification and accounting for other small changes such as timestamp formatting, this second script successfully parses all Hansard sitting days from 10 May 2011 to 28 June 2012 (inclusive)./p> are typically , and . The first child node contains data on the person whose turn it is to speak, and the second contains the entire contents of that speech –- including all interjections, comments, and continuations. After the element closes, there are typically a series of other child nodes which provide a skeleton structure for how the speech proceedings went in chronological order. For example, if the speech began, was interrupted by an MP, and then continued uninterrupted until the end, there would be one node and one node following the node. These would contain details on the MP who made each statement, such as their party and electorate./p> node. Rather than this single child node that contains all speech content, statements are categorized in individual child nodes. This means that unlike our code for parsing more current Hansards, we cannot specify a single XPath expression such as “chamber.xscript//debate//speech/talk.text” to extract all speeches, in their entirety, at once. This difference in nesting structure made many components of our second script unusable for processing transcripts preceding 10 May 2011, and required us to change our data processing approach considerably./p> node, we found that the most straightforward way to preserve the ordering of statements and to parse all speech contents at once was to parse from the element directly. The reason we did not use its child node is because every speech has a unique structure of node children, and this makes it difficult to write code for data cleaning which is generalizable across all speeches and sitting days. The challenge with parsing through the element is that every piece of data stored in that element is parsed as a single string, including all data, and all nested sub-debate data. For example, the data shown in Fig. 2 would be parsed as a single string preceding the speech content, like so:/p>

node, and used them to split statements wherever one of these patterns was found. After separating the statements, we were able to remove these patterns from the body of text. We also used this method of extracting and later removing unwanted patterns for other pieces of data which did not belong to the debate proceedings, such as sub-debate titles./p> child node, with sub-child nodes called and to differentiate the two. Questions in writing, however, are embedded in their own child node called at the end of the XML file./p> speeches used in all four scripts meant that all questions without notice content was already parsed in order. For the first two scripts, questions and answers were already separated onto their own rows. For the third and fourth scripts, just as we did with the rest of the speech content, we used those patterns of data preceding the text to separate questions and answers. Finally, since questions in writing exist in their own child node we were able to use the same parsing method for all scripts, which was to extract all question and answer elements from the child node./p> nodes to separate speeches. As evident in Fig. 3, nodes are nested within nodes, meaning that the patterns of data from interjection statements were separated out in the process. This meant that we did not need to create lists of names and titles for which to search in the text as we did before. However, we used the same list of general interjection statements on which to separate as was used in the first two scripts. We then did an additional check for statements that may have not been separated due to how they were embedded in the XML, and separated those out where needed. In particular, while most statements were categorized in their own child node and hence captured through pattern-based separation, some were not individually categorized, and had to be split manually in this step./p> nodes contain important data on the MP making each statement. As such, we could extract those data associated with each pattern by parsing one element inward, using the XPath expression “talk.start/talker”. We created a pattern lookup table with these data, and merged it with the main Hansard dataframe by the first pattern detected in each statement. Figure 6 provides an example of that lookup table. This approach enabled us to fill in missing data on each MP speaking using data extracted directly from the XML. Finally, we then used the AustralianPoliticians dataset to fill in other missing data, and flagged for interjections in the same manner as before./p> content in their own nodes that contain the voting data and division result. Since we focus primarily on the spoken Hansard content, our parsing scripts do not necessarily capture all divisions data from House proceedings. Our approach to parsing Hansard in the third and fourth scripts described in the Script Differences section naturally allowed for much of the divisions data to be added to our resulting files for 1998 to March 2011, however the parsing scripts used for May 2011 to September 2022 Hansard did not. To supplement our database and in an effort to fill this divisions data gap, we created an additional file containing all divisions data nested under the XPath “//chamber.xscript//division” from the Hansard files in our time frame. To produce this data file, for each Hansard XML we parsed the , , and child-nodes where they existed, extracted any timestamps where available, and did any additional data cleaning as necessary. We used a series of if-else statements in this script to account for variation in the structure of the node over time. Finally, we then added a date variable to distinguish between sitting days./p> element is the date. Every file passed this test, and we detected one discrepancy in an XML file from 03 June 2009, where its session header contained the wrong date. We validated that our file name and date was correct by checking the official PDF release from that sitting day./p>