Skip to content

UNGA Branch | fulltext workflow needs interjections #14

@ChristophLeonhardt

Description

@ChristophLeonhardt

I cannot produce the html for the kwic slides of the UNGA version, because at the very end there is an advanced workflow using annolite which does not seem to work (I will post an issue there as well, hoping that crossposting can be tolerated in this case):

The error occurs here:

library(polmineR)
use("UNGA")
unga_2005 <- partition("UNGA", year = 2005)
i <- 1L
metadata <- c("speaker", "date", "state_organization")
K <- kwic(unga_2005, query = "immigration", s_attributes = metadata)
P <- partition(
  get_corpus(K),
  def = lapply(setNames(metadata, metadata), function(x) K@stat[[x]][i]),
  type = "plpr"
)
data <- annolite::as.fulltextdata(P, headline = "Cornelie Sonntag-Wolgast (2005-01-21)")

Error in check_s_attribute(corpus = corpus, registry = registry, s_attribute = s_attribute) :
s_attribute 'interjection' is not declared in registry file of corpus 'UNGA'

Which is true, but shouldn't be the creation of input for fulltext possible nevertheless?

Edit: I am just realizing that the annolite package might now be the fulltext package. If so, this workflows won't be reproducible in any case and needs updating.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions