Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

s-attributes not available for hits,partition_bundle-method #74

Closed
ablaette opened this issue Mar 8, 2019 · 1 comment
Closed

s-attributes not available for hits,partition_bundle-method #74

ablaette opened this issue Mar 8, 2019 · 1 comment

Comments

@ablaette
Copy link
Collaborator

ablaette commented Mar 8, 2019

Sometimes it would be great, to get the values s-attributes for the hits of queries. But apparantly, it does not yet work for the partition_bundle-class.

library(polmineR)
library(magrittr)
use("GermaParl")

p <- partition("GERMAPARL", date = "2012-03-01")
pb <- as.speeches(p, s_attribute_name = "speaker")
cqp_queries = c('".*[kK]riminalität"', '".*[vV]erbrechen.*"', '".*[dD]elikt.*"')
dt <- hits(
  pb,
  query = cqp_queries, cqp = TRUE,
  s_attributes = c("speaker", "date", "party")
)
@PolMine
Copy link
Collaborator

PolMine commented Mar 24, 2020

The argument s_attribute is now available for the hits()-method for partition_bundle objects.

@PolMine PolMine closed this as completed Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant