Datasets:

Languages:
Hebrew
ArXiv:
Libraries:
Datasets
pandas
License:
GiliGold commited on
Commit
c96216b
1 Parent(s): 5887c53

Upload knessetCorpus.py

Browse files
Files changed (1) hide show
  1. knessetCorpus.py +6 -6
knessetCorpus.py CHANGED
@@ -84,42 +84,42 @@ class KnessetCorpus(datasets.GeneratorBasedBuilder):
84
  name="knessetMembers",
85
  description=_KnessetMembers_DESCRIPTION,
86
  features=["person_id", "first_name", "last_name", "full_name", "is_knesset_member", "gender", "email", "is_current", "last_updated_date", "date_of_birth", "place_of_birth", "year_of_aliya", "date_of_death", "mother_tongue", "religion", "nationality", "religious_orientation", "residence", "factions_memberships", "languages","allSources", "wikiLink","notes" ],
87
- data_urls=["https://huggingface.co/datasets/HaifaCLGroup/KnessetCorpus/blob/main/all_knesset_members_jsons.jsonl"],
88
  citation=_KnessetCorpus_CITATION,
89
  ),
90
  KnessetCorpusConfig(
91
  name="factions",
92
  description=_Factions_DESCRIPTION,
93
  features=["faction_name", "faction_popular_initials", "faction_id", "active_periods", "knesset_numbers", "coalition_or_opposition_memberships", "political_orientation", "other_names", "notes", "wiki_link", ],
94
- data_urls=["https://huggingface.co/datasets/HaifaCLGroup/KnessetCorpus/blob/main/factions_jsons.jsonl"],
95
  citation=_KnessetCorpus_CITATION,
96
  ),
97
  KnessetCorpusConfig(
98
  name="protocols",
99
  description=_Protocols_DESCRIPTION,
100
  features=["protocol_name", "session_name", "parent_session_name", "knesset_number", "protocol_number", "protocol_date", "is_ocr_output", "protocol_type", "protocol_sentences"],
101
- data_urls=["https://dl.fbaipublicfiles.com/glue/superglue/data/v2/BoolQ.zip"],#TODO
102
  citation=_KnessetCorpus_CITATION,
103
  ),
104
  KnessetCorpusConfig(
105
  name="all_features_sentences",
106
  description=_AllFeaturesSentences_DESCRIPTION,
107
  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"],
108
- data_urls=["https://huggingface.co/datasets/HaifaCLGroup/KnessetCorpus/blob/main/protocols_sentences/committee_full_sentences.jsonl.bz2", "https://huggingface.co/datasets/HaifaCLGroup/KnessetCorpus/blob/main/protocols_sentences/plenary_full_sentences.jsonl.bz2"],
109
  citation=_KnessetCorpus_CITATION,
110
  ),
111
  KnessetCorpusConfig(
112
  name="committees_all_features_sentences",
113
  description=_AllFeaturesSentences_DESCRIPTION,
114
  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"],
115
- data_urls=["https://huggingface.co/datasets/HaifaCLGroup/KnessetCorpus/blob/main/protocols_sentences/committee_full_sentences.jsonl.bz2"],
116
  citation=_KnessetCorpus_CITATION,
117
  ),
118
  KnessetCorpusConfig(
119
  name="plenary_all_features_sentences",
120
  description=_AllFeaturesSentences_DESCRIPTION,
121
  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"],
122
- data_urls=["https://huggingface.co/datasets/HaifaCLGroup/KnessetCorpus/blob/main/protocols_sentences/plenary_full_sentences.jsonl.bz2"],
123
  citation=_KnessetCorpus_CITATION,
124
  )]
125
 
 
84
  name="knessetMembers",
85
  description=_KnessetMembers_DESCRIPTION,
86
  features=["person_id", "first_name", "last_name", "full_name", "is_knesset_member", "gender", "email", "is_current", "last_updated_date", "date_of_birth", "place_of_birth", "year_of_aliya", "date_of_death", "mother_tongue", "religion", "nationality", "religious_orientation", "residence", "factions_memberships", "languages","allSources", "wikiLink","notes" ],
87
+ data_urls=["https://huggingface.co/datasets/HaifaCLGroup/KnessetCorpus/blob/main/all_knesset_members_jsons.jsonl?raw=true"],
88
  citation=_KnessetCorpus_CITATION,
89
  ),
90
  KnessetCorpusConfig(
91
  name="factions",
92
  description=_Factions_DESCRIPTION,
93
  features=["faction_name", "faction_popular_initials", "faction_id", "active_periods", "knesset_numbers", "coalition_or_opposition_memberships", "political_orientation", "other_names", "notes", "wiki_link", ],
94
+ data_urls=["https://huggingface.co/datasets/HaifaCLGroup/KnessetCorpus/blob/main/factions_jsons.jsonl?raw=true"],
95
  citation=_KnessetCorpus_CITATION,
96
  ),
97
  KnessetCorpusConfig(
98
  name="protocols",
99
  description=_Protocols_DESCRIPTION,
100
  features=["protocol_name", "session_name", "parent_session_name", "knesset_number", "protocol_number", "protocol_date", "is_ocr_output", "protocol_type", "protocol_sentences"],
101
+ data_urls=["https://dl.fbaipublicfiles.com/glue/superglue/data/v2/BoolQ.zip?raw=true"],#TODO
102
  citation=_KnessetCorpus_CITATION,
103
  ),
104
  KnessetCorpusConfig(
105
  name="all_features_sentences",
106
  description=_AllFeaturesSentences_DESCRIPTION,
107
  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"],
108
+ data_urls=["https://huggingface.co/datasets/HaifaCLGroup/KnessetCorpus/blob/main/protocols_sentences/committee_full_sentences.jsonl.bz2?raw=true", "https://huggingface.co/datasets/HaifaCLGroup/KnessetCorpus/blob/main/protocols_sentences/plenary_full_sentences.jsonl.bz2?raw=true"],
109
  citation=_KnessetCorpus_CITATION,
110
  ),
111
  KnessetCorpusConfig(
112
  name="committees_all_features_sentences",
113
  description=_AllFeaturesSentences_DESCRIPTION,
114
  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"],
115
+ data_urls=["https://huggingface.co/datasets/HaifaCLGroup/KnessetCorpus/blob/main/protocols_sentences/committee_full_sentences.jsonl.bz2?raw=true"],
116
  citation=_KnessetCorpus_CITATION,
117
  ),
118
  KnessetCorpusConfig(
119
  name="plenary_all_features_sentences",
120
  description=_AllFeaturesSentences_DESCRIPTION,
121
  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"],
122
+ data_urls=["https://huggingface.co/datasets/HaifaCLGroup/KnessetCorpus/blob/main/protocols_sentences/plenary_full_sentences.jsonl.bz2?raw=true"],
123
  citation=_KnessetCorpus_CITATION,
124
  )]
125