UNPKG

cetem-publico

Version:

A wrapper for CETEMPúblico, an European Portuguese corpus of news extracts from the newspaper Público, with 180 million words tagged automatically using PALAVRAS.

17 lines (13 loc) 333 B
module.exports = class Extract { constructor({n, sec, sem}, contents){ this.n = n; this.section = sec; this.week = sem; this.contents = contents; } toString(){ return `<ext n=${this.n} sec=${this.section} sem=${this.week}>\n` + this.contents.map(c => c.toString()).join('') + '</ext>' } };