Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions probing/ud_filter/filtering_probing.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def upload_files(

list_texts = [read(p) for p in self.paths]
conllu_data = "\n".join(list_texts)
conllu_data = re.sub(r"\d+\-\d+.*\n", "", conllu_data)

self.language = extract_lang_from_udfile_path(self.paths[0], language=language)
self.sentences = parse(conllu_data)
Expand Down
2 changes: 1 addition & 1 deletion tests/filter_test/test_filtering_probing.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def test_filter_and_convert_all_saved(self):
save_dir_path=task_dir.name,
task_name="cl",
)
self.assertEqual(queries_sents, self.probing_filter.probing_dict)
self.assertCountEqual(queries_sents, self.probing_filter.probing_dict)
with open(f"{task_dir.name}/ru_taiga_cl.csv") as f:
self.assertEqual(27, len(f.readlines()))
task_dir.cleanup()
Expand Down