8000 prs_gn by ch-jensen · Pull Request #48 · DT-UCPH/sp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

prs_gn #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 21, 2023
Merged
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
4 changes: 2 additions & 2 deletions tests/test_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def test_unknown_gender():
and F.g_nme.v(w) in {'','/','/H','/J','/JM','/T','/TJ','/WT'} for w in F.otype.s('word') if F.gn.v(w) == 'unknown'})

def test_masculine_gender_sfx():
assert all({F.g_prs.v(w) in {'+HM','+HW','+K','+KH','+KM','+M','+MW','+W'} for w in F.otype.s('word') if F.prs_gn.v(w) == 'm'})
assert all({F.g_prs.v(w) in {'+H','+HM','+HW','+K','+KH','+KM','+M','+MW','+W'} for w in F.otype.s('word') if F.prs_gn.v(w) == 'm'})

def test_feminine_gender_sfx():
assert all({F.g_prs.v(w) in {'+H','+HN','+K','+KN','+NH'} for w in F.otype.s('word') if F.prs_gn.v(w) == 'f'})
assert all({F.g_prs.v(w) in {'+H','+HN','+K','+KN','+N','+NH'} for w in F.otype.s('word') if F.prs_gn.v(w) == 'f'})
4 changes: 3 additions & 1 deletion tests/test_two_features_pronominal_suffixes.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ def test_combinations_of_g_prs_and_prs_gn():
('+H', 'f'), (']H]', 'NA'),
('+NW', 'unknown'), ('+W', 'm'),
('+KN', 'f'), ('+', 'unknown'),
('+MW', 'm'), ('+KH', 'm'),
('+MW', 'm'), ('+KH', 'm'),
('+N', 'f'), ('+H', 'm'),
('+NH', 'f'), ('+HN', 'f'),
('+K', 'm'), ('+NJ', 'unknown'),
('+W', 'unknown'), ('+M', 'm'),
('+K', 'f'), ('+HM', 'm')}

assert all([(F.g_prs.v(w), F.prs_gn.v(w)) in allowed_combinations_g_prs_prs_gn
for w in F.otype.s('word')
if F.g_prs.v(w) not in {'absent', '','?'} and F.prs_gn.v(w) != '?'])
Expand Down
20 changes: 0 additions & 20 deletions tf/3.3.1/book.tf

This file was deleted.

202 changes: 0 additions & 202 deletions tf/3.3.1/chapter.tf

This file was deleted.

Loading
0