Skip to content

Commit

Permalink
Import Documents: conllu tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ajdapretnar committed Dec 6, 2024
1 parent b45fad4 commit f056910
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions orangecontrib/text/tests/test_import_documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ def test_conllu_reader(self):
self.assertEqual(len(corpus), len(lemma))
self.assertEqual(len(corpus), len(pos))
self.assertEqual(len(corpus), len(ner))
self.assertTrue(np.any(~np.isnan(corpus.get_column(
"Speaker_birth"))))

@patch(SF_LIST, return_value=SPECIAL_CHAR_FILES)
@patch(PATCH_METHOD, side_effect=ConnectTimeout("test message", request=""))
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ID Title From To House Term Session Meeting Sitting Agenda Subcorpus Speaker_role Speaker_type Speaker_party Speaker_party_name Party_status Speaker_name Speaker_gender Speaker_birth
ParlaMint-SI_2014-08-01-SDZ7-Redna-01.u1 Minutes of the National Assembly of the Republic of Slovenia, Term 7, Regular Session 1, 1.8.2014 2014-08-01 2014-08-01 Lower house 7 1 Reference Chairperson MP DeSUS Demokratična stranka upokojencev Slovenije Kotnik Poropat, Marjana F 1944
ParlaMint-SI_2014-08-01-SDZ7-Redna-01.u2 Minutes of the National Assembly of the Republic of Slovenia, Term 7, Regular Session 1, 1.8.2014 2014-08-01 2014-08-01 Lower house 7 1 Reference Regular MP SD Socialni demokrati Veber, Janko M 1960
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ID Title From To House Term Session Meeting Sitting Agenda Subcorpus Speaker_role Speaker_type Speaker_party Speaker_party_name Party_status Speaker_name Speaker_gender Speaker_birth
ParlaMint-SI_2014-08-25-SDZ7-Izredna-01.u1 Minutes of the National Assembly of the Republic of Slovenia, Term 7, Extraordinary Session 1, 25.8.2014 2014-08-25 2014-08-25 Lower house 7 1 Reference Chairperson MP SMC Stranka Mira Cerarja Brglez, Milan M 1967
ParlaMint-SI_2014-08-25-SDZ7-Izredna-01.u2 Minutes of the National Assembly of the Republic of Slovenia, Term 7, Extraordinary Session 1, 25.8.2014 2014-08-25 2014-08-25 Lower house 7 1 Reference Chairperson MP SMC Stranka Mira Cerarja Brglez, Milan M 1967
ParlaMint-SI_2014-08-25-SDZ7-Izredna-01.u3 Minutes of the National Assembly of the Republic of Slovenia, Term 7, Extraordinary Session 1, 25.8.2014 2014-08-25 2014-08-25 Lower house 7 1 Reference Regular MP SD Socialni demokrati Židan, Dejan M 1967

0 comments on commit f056910

Please sign in to comment.