Upload knessetCorpus.py
Browse files- knessetCorpus.py +1 -5
knessetCorpus.py
CHANGED
@@ -120,7 +120,7 @@ class KnessetCorpus(datasets.GeneratorBasedBuilder):
|
|
120 |
name="plenary_all_features_sentences",
|
121 |
description=_AllFeaturesSentences_DESCRIPTION,
|
122 |
features=["sentence_id", "protocol_name", "speaker_id", "speaker_name", "is_valid_speaker", "turn_num_in_protocol", "sent_num_in_turn", "sentence_text", "is_chairman","morphological_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", "member_of_coalition_or_opposition", "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"],
|
123 |
-
data_urls=["https://huggingface.co/datasets/HaifaCLGroup/KnessetCorpus/
|
124 |
citation=_KnessetCorpus_CITATION,
|
125 |
)]
|
126 |
|
@@ -260,10 +260,6 @@ class KnessetCorpus(datasets.GeneratorBasedBuilder):
|
|
260 |
print(f'data_files:{data_files}')
|
261 |
if "all_features_sentences" in self.config.name:
|
262 |
id_field_name = "sentence_id"
|
263 |
-
url = hf_hub_url(repo_id="HaifaCLGroup/knessetCorpus",
|
264 |
-
filename="KnessetCorpus/protocols_sentences/committee_full_sentences.jsonl.bz2")
|
265 |
-
data_files = [url]
|
266 |
-
|
267 |
elif self.config.name == "protocols":
|
268 |
id_field_name = "protocol_name"
|
269 |
elif self.config.name == "factions":
|
|
|
120 |
name="plenary_all_features_sentences",
|
121 |
description=_AllFeaturesSentences_DESCRIPTION,
|
122 |
features=["sentence_id", "protocol_name", "speaker_id", "speaker_name", "is_valid_speaker", "turn_num_in_protocol", "sent_num_in_turn", "sentence_text", "is_chairman","morphological_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", "member_of_coalition_or_opposition", "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"],
|
123 |
+
data_urls=["https://huggingface.co/datasets/HaifaCLGroup/KnessetCorpus/resolve/main/protocols_sentences/plenary_full_sentences.jsonl.bz2"],
|
124 |
citation=_KnessetCorpus_CITATION,
|
125 |
)]
|
126 |
|
|
|
260 |
print(f'data_files:{data_files}')
|
261 |
if "all_features_sentences" in self.config.name:
|
262 |
id_field_name = "sentence_id"
|
|
|
|
|
|
|
|
|
263 |
elif self.config.name == "protocols":
|
264 |
id_field_name = "protocol_name"
|
265 |
elif self.config.name == "factions":
|