Update knessetCorpus.py
Browse files- knessetCorpus.py +8 -4
knessetCorpus.py
CHANGED
@@ -6,10 +6,7 @@ from huggingface_hub import hf_hub_url
|
|
6 |
import datasets
|
7 |
|
8 |
|
9 |
-
_KnessetCorpus_CITATION =
|
10 |
-
@article{
|
11 |
-
}
|
12 |
-
"""
|
13 |
|
14 |
_KnessetCorpus_DESCRIPTION = """
|
15 |
An annotated corpus of Hebrew parliamentary proceedings containing over 32 million sentences from all the (plenary and committee) protocols held in the Israeli parliament from 1998 to 2022.
|
@@ -111,6 +108,13 @@ class KnessetCorpus(datasets.GeneratorBasedBuilder):
|
|
111 |
|
112 |
BUILDER_CONFIG_CLASS = KnessetCorpusConfig
|
113 |
BUILDER_CONFIGS = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
KnessetCorpusConfig(
|
115 |
name="knessetMembers",
|
116 |
description=_KnessetMembers_DESCRIPTION,
|
|
|
6 |
import datasets
|
7 |
|
8 |
|
9 |
+
_KnessetCorpus_CITATION = @misc{goldin2024knesset, title={The Knesset Corpus: An Annotated Corpus of Hebrew Parliamentary Proceedings}, author={Gili Goldin and Nick Howell and Noam Ordan and Ella Rabinovich and Shuly Wintner}, year={2024}, eprint={2405.18115}, archivePrefix={arXiv}, primaryClass={cs.CL} }
|
|
|
|
|
|
|
10 |
|
11 |
_KnessetCorpus_DESCRIPTION = """
|
12 |
An annotated corpus of Hebrew parliamentary proceedings containing over 32 million sentences from all the (plenary and committee) protocols held in the Israeli parliament from 1998 to 2022.
|
|
|
108 |
|
109 |
BUILDER_CONFIG_CLASS = KnessetCorpusConfig
|
110 |
BUILDER_CONFIGS = [
|
111 |
+
KnessetCorpusConfig(
|
112 |
+
name="all_features_sentences",
|
113 |
+
description=_AllFeaturesSentences_DESCRIPTION,
|
114 |
+
features=[ "_id", "knesset_number", "protocol_name", "protocol_number", "protocol_type", "session_name", "parent_session_name", "@timestamp", "protocol_date", "is_ocr_output", "sentence_id", "speaker_id", "speaker_name", "is_valid_speaker", "is_chairman", "turn_num_in_protocol", "sent_num_in_turn", "sentence_text", "morphological_fields", "factuality_fields", "speaker_first_name", "speaker_last_name", "speaker_is_knesset_member", "speaker_gender", "speaker_email", "speaker_last_updated_date", "speaker_date_of_birth", "speaker_place_of_birth","speaker_year_of_aliya", "speaker_date_of_death", "speaker_mother_tongue", "speaker_religion", "speaker_nationality", "speaker_religious_orientation", "speaker_residence", "speaker_factions_memberships", "speaker_languages", "speaker_sources", "speaker_notes","faction_id", "faction_general_name", "knesset_faction_id", "current_faction_name", "faction_popular_initials", "faction_active_periods", "faction_knesset_numbers","faction_coalition_or_opposition_memberships", "faction_political_orientation", "faction_other_names", "faction_notes", "faction_wiki_link"],
|
115 |
+
data_urls=[f"https://huggingface.co/datasets/HaifaCLGroup/KnessetCorpus/resolve/main/protocols_sentences/plenary_full_sentences_shards_bzip2_files/plenary_full_sentences_shard_{str(i).zfill(2)}.jsonl.bz2" for i in range(27)]+[f"https://huggingface.co/datasets/HaifaCLGroup/KnessetCorpus/resolve/main/protocols_sentences/committee_full_sentences_shards_bzip2_files/committee_full_sentences_shard_{str(i).zfill(2)}.jsonl.bz2" for i in range(83)],
|
116 |
+
citation=_KnessetCorpus_CITATION,
|
117 |
+
),
|
118 |
KnessetCorpusConfig(
|
119 |
name="knessetMembers",
|
120 |
description=_KnessetMembers_DESCRIPTION,
|