Update German tag_map

Update German tag_map based on this conversion table:
https://universaldependencies.org/tagset-conversion/de-stts-uposf.html
This commit is contained in:
Adriane Boyd 2019-10-22 09:37:47 +02:00
parent a68d2203e0
commit c98d3f5bec

View File

@ -1,8 +1,8 @@
# coding: utf8 # coding: utf8
from __future__ import unicode_literals from __future__ import unicode_literals
from ...symbols import POS, PUNCT, ADJ, CONJ, SCONJ, NUM, DET, ADV, ADP, X, VERB from ...symbols import POS, PUNCT, ADJ, CCONJ, SCONJ, NUM, DET, ADV, ADP, X
from ...symbols import NOUN, PROPN, PART, INTJ, SPACE, PRON, AUX from ...symbols import NOUN, PROPN, PART, INTJ, SPACE, PRON, AUX, VERB
TAG_MAP = { TAG_MAP = {
@ -20,8 +20,8 @@ TAG_MAP = {
"CARD": {POS: NUM, "NumType": "card"}, "CARD": {POS: NUM, "NumType": "card"},
"FM": {POS: X, "Foreign": "yes"}, "FM": {POS: X, "Foreign": "yes"},
"ITJ": {POS: INTJ}, "ITJ": {POS: INTJ},
"KOKOM": {POS: CONJ, "ConjType": "comp"}, "KOKOM": {POS: CCONJ, "ConjType": "comp"},
"KON": {POS: CONJ}, "KON": {POS: CCONJ},
"KOUI": {POS: SCONJ}, "KOUI": {POS: SCONJ},
"KOUS": {POS: SCONJ}, "KOUS": {POS: SCONJ},
"NE": {POS: PROPN}, "NE": {POS: PROPN},
@ -43,7 +43,7 @@ TAG_MAP = {
"PTKA": {POS: PART}, "PTKA": {POS: PART},
"PTKANT": {POS: PART, "PartType": "res"}, "PTKANT": {POS: PART, "PartType": "res"},
"PTKNEG": {POS: PART, "Polarity": "neg"}, "PTKNEG": {POS: PART, "Polarity": "neg"},
"PTKVZ": {POS: PART, "PartType": "vbp"}, "PTKVZ": {POS: ADP, "PartType": "vbp"},
"PTKZU": {POS: PART, "PartType": "inf"}, "PTKZU": {POS: PART, "PartType": "inf"},
"PWAT": {POS: DET, "PronType": "int"}, "PWAT": {POS: DET, "PronType": "int"},
"PWAV": {POS: ADV, "PronType": "int"}, "PWAV": {POS: ADV, "PronType": "int"},