
Manifesto Project example manifestos and gold-standard segmentation
data_corpus_MPexamples.RdTwo datasets derived from Appendix 2 of Klingemann et al. (2006), which provides worked examples of the Manifesto Project quasi-sentence coding scheme.
data_corpus_MPexamples is a two-document corpus containing the full source
texts of the Liberal-SDP Alliance 1983 UK election manifesto and the New
Zealand National Party 1972 election manifesto, reconstructed by joining
the quasi-sentences from the gold-standard annotation.
data_corpus_MPexamplesseg is the corresponding gold-standard segmented
corpus, produced by converting the Manifesto Project's human-coded
quasi-sentences via as_qlm_coded() with qlm_segment = TRUE. It is marked
as a gold standard (is_gold = TRUE) and can be passed directly to
qlm_compare() alongside output from qlm_segment() to compute
Krippendorff's alpha for unitizing.
Format
data_corpus_MPexamples: A corpus with 2 documents
and the following document-level variables:
- country
Character. Country of origin:
"UK"or"NZ".- party
Character. Party name:
"Liberal-SDP Alliance"or"National Party".- year
Integer. Election year:
1983or1972.
data_corpus_MPexamplesseg: A segmented corpus with
178 quasi-sentences (107 Liberal-SDP, 71 NZ National Party) and the
following document-level variables:
- docid
Character. Source document identifier (
"Liberal_SDP_1983"or"NZ_NP_1972").- segid
Integer. Quasi-sentence index within the source document.
- char_start
Integer. Start character position in the source text.
- char_end
Integer. End character position in the source text.
- manifesto
Character. Manifesto Project manifesto label (
"Liberal-SDP 1983"or"NP 1972").- country
Character. Country of origin:
"UK"or"NZ".- per
Integer. Manifesto Project policy category code.
An object of class corpus (inherits from character) of length 178.
References
Klingemann, H. D., Volkens, A., Bara, J., Budge, I., & McDonald, M. D. (2006). Mapping Policy Preferences II: Estimates for Parties, Electors, and Governments in Eastern Europe, European Union, and OECD 1990–2003. Oxford University Press.
Examples
if (requireNamespace("quanteda", quietly = TRUE)) {
# Inspect the source texts
summary(data_corpus_MPexamples)
# Subset to one manifesto
quanteda::corpus_subset(data_corpus_MPexamples, country == "NZ")
# Gold-standard segmentation for the NZ manifesto
quanteda::corpus_subset(data_corpus_MPexamplesseg,
quanteda::docvars(data_corpus_MPexamplesseg,
"docid") == "NZ_NP_1972")
}
#> Corpus consisting of 71 documents and 7 docvars.
#> NZ_NP_1972.1 :
#> "A Guide to what the next National Government will do for New..."
#>
#> NZ_NP_1972.2 :
#> "Labour has dissipated these reserves, borrowed about $200 mi..."
#>
#> NZ_NP_1972.3 :
#> "Inflation in 1972 was about 5 per cent, the second lowest of..."
#>
#> NZ_NP_1972.4 :
#> "Today it is about 15 per cent, well above the OECD average,"
#>
#> NZ_NP_1972.5 :
#> "and New Zealand has an external deficit per head of populati..."
#>
#> NZ_NP_1972.6 :
#> "The first three years of the coming National Government will..."
#>
#> [ reached max_ndoc ... 65 more documents ]