PolMine / GermaParl2

GermaParl corpus of plenary protocols (v2)
0 stars 0 forks source link

as.speeches() mistakenly recognizes partitions from GERMAPARL2 as partition_bundles #12

Open LBoenninger opened 1 month ago

LBoenninger commented 1 month ago

When I run the below code I will get the following error:

test <- partition("GERMAPARL2", protocol_lp= 18:19, p_attribute="word")

entire_bundle <- as.speeches(test, s_attribute_name = "speaker_name", s_attribute_date = "protocol_date")

ℹ distinct dates detected: 483 ℹ bundle class: partition_bundle ℹ objects in bundle: plpr_partition ℹ s-attribute for splitting ("protocol_date") is ancestor of s-attribute "speaker_parlgroup" ℹ s-attribute "protocol_date" has values: yes ✔ get list of regions [36ms] ✔ instantiate 483 plpr_partition objects [73ms] ✔ subsetting by date [489ms] |++++++++++++++++++++++++++++++++++++++++++++++++++| 100% elapsed=42s
Error in getClass(Class, where = topenv(parent.frame())) : “plpr_partition_bundle” is not a defined class ✖ generating speeches [46.6s]

I ran is.partition(test) before and it returns TRUE.

Any help is greatly appreciated.