DOI: 10.5281/zenodo.3908507
title: PTNews Corpus

description: The <strong>PTNews Corpus</strong> is a collection of over 19 million tokens extracted from 10 years of political news articles (in Portuguese) from the <strong>Portuguese</strong> newspaper PÚBLICO. The corpus is available under the Creative Commons Attribution-NonCommercial-ShareAlike Licence. The material contained on the PTNews Corpus is © 2010-2020 PÚBLICO Comunicação Social SA. The corpus sizes between the preprocessed version of Penn Treebank (PTB) and WikiText-103. Similarly to WikiText, PTNews has a larger vocabulary than PTB and retains the original case, punctuation and numbers. This corpus contains over 31000 publicly available full articles which makes it well suited for models that can take advantage of long-term dependencies.<br> <br> The corpus is available as a <strong>word-level</strong> collection of articles in two version: the first (ptnews_origin) contains a single file with all the articles in the form: <strong>title</strong>, <strong>URL</strong>, <strong>date</strong>, <strong>body</strong>; the second, contains only the <strong>title</strong> and <strong>body</strong> of the news articles and it is split into <strong>train</strong>, <strong>test</strong>, <strong>validation</strong> sets. In this processed version, the words with less than 3 occurrences are mapped to the <em>&lt;unk&gt;</em> token. Each sentence in an article body occupies a single line of the dataset and the end of paragraph is marked with the <em>&lt;eop&gt;</em> tag at the end of a sentence. Portuguese words resulting from contractions like <em>"desta"</em>, ou <em>"nesta"</em> are separated into <em>"d"</em>, <em>"esta"</em>, <em>"n"</em>, <em>"esta",</em> respectively.<br> <strong>Sample article</strong>:<br> <pre><code class="language-bash">Carlos César : Cavaco " cansado e sem entusiasmo " quis afastar responsabilidades sobre a crise https://publico.pt/2010/06/10/politica/noticia/carlos-cesar-cavaco-cansado-e-sem-entusiasmo-quis-afastar-responsabilidades-sobre-a-crise-1441369 2010-06-10 15:38:00 O presidente do Governo Regional dos Açores , Carlos César , considerou hoje que Cavaco Silva esteve " cansado e sem entusiasmo " no discurso do Dia de Portugal , onde afastou responsabilidades sobre a actual crise . &lt;eop&gt; " O país ouviu um Presidente cansado e sem entusiasmo , que andou às voltas com os papéis para dizer que não tinha nada a ver com as razões da crise " , afirmou Carlos César , num comentário à Lusa sobre o discurso do Presidente da República na cerimónia oficial do 10 de Junho , realizada em Faro . &lt;eop&gt; Carlos César considerou , no entanto , " positivo " que Cavaco Silva tenha feito " um discurso alinhado com um tema recorrente na apreciação do momento que vivemos , o da coesão e da corresponsabilização " . &lt;eop&gt; No mesmo sentido , manifestou concordância com o apelo que Cavaco Silva fez " à responsabilidade dos empregadores e empregados " , mas deixou um alerta relativamente à referência do Presidente da República à necessidade de " limpar Portugal " . &lt;eop&gt; Para Carlos César , se essa referência " for despida de conteúdo institucional útil , tratou-se de mais um discurso que se perderá na babugem política d aquilo que Cavaco Silva entendeu recordar como o ' rectângulo ' " . &lt;eop&gt;</code></pre> <strong>Reporting Results</strong><br> If you wish to report results or other resources obtained on the PTNews contact Davide Nunes with the following information: <strong>Task</strong>: e.g. Language Modelling, Semantic Similarity, etc; <strong>Publication URL</strong>: url to published article or preprint; <strong>Type of Model</strong>: LSTM Neural Network, n-grams, GloVe vectors, etc; <strong>Evaluation Metrics</strong>: e.g. validation and testing perplexities in the case of language modelling. They will be displayed here <strong>Preprocessed Corpus Statistics</strong> articles: 31.919 articles by split: train: 25.537 test: 3.191 val: 3.191 unique tokens: 68.318 unique OoV Tokens: 76.157 total tokens: 19.021.661 total OoV tokens: 95.043 OoV rate: 0.5% tokens by split: train: 15.242.995 test: 1.895.184 val: 1.883.482 <strong>Contact Information</strong> If you have questions about the corpus or want to report benchmark results, contact Davide Nunes. <br>