Skip to content
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

added tag_map for indonesian #3515

Merged
merged 8 commits into from
Apr 1, 2019
Merged
Changes from 5 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
37 changes: 37 additions & 0 deletions spacy/lang/id/tag_map.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# coding: utf8

from __future__ import unicode_literals

from ...symbols import POS, PUNCT, SYM, ADJ, CCONJ, NUM, DET, ADV, ADP, X, VERB
from ...symbols import NOUN, PROPN, PART, INTJ, SPACE, PRON, AUX, SCONJ


# POS explanations for indonesian available from https://www.aclweb.org/anthology/Y12-1014


TAG_MAP = {
"NSD" : {POS: NOUN},
"Z–" : {POS: PUNCT},
"VSA" : {POS: VERB},
"CC-" : {POS: NUM},
"R–" : {POS: ADP},
"D–" : {POS: ADV},
"ASP": {POS: ADJ},
"S–" : {POS: SCONJ},
"VSP" : {POS: VERB},
"H–" : {POS: CCONJ},
"F–" : {POS: X},
"B–" : {POS: DET},
"CO-" : {POS: NUM},
"G–" : {POS: ADV},
"PS3" : {POS: PRON},
"W–" : {POS: ADV},
"O–" : {POS: AUX},
"PP1" : {POS: PRON},
"ASS" : {POS: ADJ},
"PS1" : {POS: PRON},
"APP" : {POS: ADJ},
"CD-" : {POS: NUM},
"VPA" : {POS: VERB},
"VPP" : {POS: VERB},
}