mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-16 06:37:04 +03:00
c809b2c8e7
* Update morph_rules.py Added "dig" and "dej" ("you" in accusative form) * Create Nuccy90.md * Update Nuccy90.md
303 lines
7.7 KiB
Python
303 lines
7.7 KiB
Python
# coding: utf8
|
|
from __future__ import unicode_literals
|
|
|
|
from ...symbols import LEMMA, PRON_LEMMA
|
|
|
|
|
|
# Used the table of pronouns at https://sv.wiktionary.org/wiki/deras
|
|
MORPH_RULES = {
|
|
"PRP": {
|
|
"jag": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "One",
|
|
"Number": "Sing",
|
|
"Case": "Nom",
|
|
},
|
|
"mig": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "One",
|
|
"Number": "Sing",
|
|
"Case": "Acc",
|
|
},
|
|
"mej": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "One",
|
|
"Number": "Sing",
|
|
"Case": "Acc",
|
|
},
|
|
"du": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "Two",
|
|
"Number": "Sing",
|
|
"Case": "Nom",
|
|
},
|
|
"dig": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "Two",
|
|
"Number": "Sing",
|
|
"Case": "Acc",
|
|
},
|
|
"dej": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "Two",
|
|
"Number": "Sing",
|
|
"Case": "Acc",
|
|
},
|
|
"han": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "Three",
|
|
"Number": "Sing",
|
|
"Gender": "Masc",
|
|
"Case": "Nom",
|
|
},
|
|
"honom": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "Three",
|
|
"Number": "Sing",
|
|
"Gender": "Masc",
|
|
"Case": "Acc",
|
|
},
|
|
"hon": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "Three",
|
|
"Number": "Sing",
|
|
"Gender": "Fem",
|
|
"Case": "Nom",
|
|
},
|
|
"henne": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "Three",
|
|
"Number": "Sing",
|
|
"Gender": "Fem",
|
|
"Case": "Acc",
|
|
},
|
|
"det": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "Three",
|
|
"Number": "Sing",
|
|
"Gender": "Neut",
|
|
},
|
|
"vi": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "One",
|
|
"Number": "Plur",
|
|
"Case": "Nom",
|
|
},
|
|
"oss": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "One",
|
|
"Number": "Plur",
|
|
"Case": "Acc",
|
|
},
|
|
"ni": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "Two",
|
|
"Number": "Plur",
|
|
"Case": "Nom",
|
|
},
|
|
"er": {LEMMA: PRON_LEMMA, "PronType": "Prs", "Person": "Two", "Number": "Plur"},
|
|
"de": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "Three",
|
|
"Number": "Plur",
|
|
"Case": "Nom",
|
|
},
|
|
"dom": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "Three",
|
|
"Number": "Plur",
|
|
"Case": ("Nom", "Acc"),
|
|
},
|
|
"dem": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "Three",
|
|
"Number": "Plur",
|
|
"Case": "Acc",
|
|
},
|
|
"min": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "One",
|
|
"Number": "Sing",
|
|
"Poss": "Yes",
|
|
"Reflex": "Yes",
|
|
},
|
|
"mitt": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "One",
|
|
"Number": "Sing",
|
|
"Poss": "Yes",
|
|
"Reflex": "Yes",
|
|
},
|
|
"mina": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "One",
|
|
"Number": "Plur",
|
|
"Poss": "Yes",
|
|
"Reflex": "Yes",
|
|
},
|
|
"din": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "Two",
|
|
"Number": "Sing",
|
|
"Poss": "Yes",
|
|
"Reflex": "Yes",
|
|
},
|
|
"ditt": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "Two",
|
|
"Number": "Sing",
|
|
"Poss": "Yes",
|
|
"Reflex": "Yes",
|
|
},
|
|
"dina": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "Two",
|
|
"Number": "Plur",
|
|
"Poss": "Yes",
|
|
"Reflex": "Yes",
|
|
},
|
|
"hans": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "Two",
|
|
"Number": ("Sing", "Plur"),
|
|
"Gender": "Masc",
|
|
"Poss": "Yes",
|
|
"Reflex": "Yes",
|
|
},
|
|
"hennes": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "Two",
|
|
"Number": ("Sing", "Plur"),
|
|
"Gender": "Fem",
|
|
"Poss": "Yes",
|
|
"Reflex": "Yes",
|
|
},
|
|
"dess": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "Two",
|
|
"Number": ("Sing", "Plur"),
|
|
"Poss": "Yes",
|
|
"Reflex": "Yes",
|
|
},
|
|
"vår": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "One",
|
|
"Number": "Plur",
|
|
"Poss": "Yes",
|
|
"Reflex": "Yes",
|
|
},
|
|
"våran": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "One",
|
|
"Number": "Plur",
|
|
"Poss": "Yes",
|
|
"Reflex": "Yes",
|
|
},
|
|
"vårt": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "One",
|
|
"Number": "Plur",
|
|
"Poss": "Yes",
|
|
"Reflex": "Yes",
|
|
},
|
|
"vårat": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "One",
|
|
"Number": "Plur",
|
|
"Poss": "Yes",
|
|
"Reflex": "Yes",
|
|
},
|
|
"våra": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "One",
|
|
"Number": "Plur",
|
|
"Poss": "Yes",
|
|
"Reflex": "Yes",
|
|
},
|
|
"eran": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "Two",
|
|
"Number": "Plur",
|
|
"Poss": "Yes",
|
|
"Reflex": "Yes",
|
|
},
|
|
"ert": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "Two",
|
|
"Number": "Plur",
|
|
"Poss": "Yes",
|
|
"Reflex": "Yes",
|
|
},
|
|
"erat": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "Two",
|
|
"Number": "Plur",
|
|
"Poss": "Yes",
|
|
"Reflex": "Yes",
|
|
},
|
|
"era": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "Two",
|
|
"Number": "Plur",
|
|
"Poss": "Yes",
|
|
"Reflex": "Yes",
|
|
},
|
|
"deras": {
|
|
LEMMA: PRON_LEMMA,
|
|
"PronType": "Prs",
|
|
"Person": "Three",
|
|
"Number": "Plur",
|
|
"Poss": "Yes",
|
|
"Reflex": "Yes",
|
|
},
|
|
},
|
|
"VBZ": {
|
|
"är": {
|
|
"VerbForm": "Fin",
|
|
"Person": ("One", "Two", "Three"),
|
|
"Tense": "Pres",
|
|
"Mood": "Ind",
|
|
}
|
|
},
|
|
"VBP": {"är": {"VerbForm": "Fin", "Tense": "Pres", "Mood": "Ind"}},
|
|
"VBD": {
|
|
"var": {"VerbForm": "Fin", "Tense": "Past", "Number": "Sing"},
|
|
"vart": {"VerbForm": "Fin", "Tense": "Past", "Number": "Plur"},
|
|
},
|
|
}
|