mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 05:37:03 +03:00
52f3c95004
I have added alpha support for the Tagalog language from the Philippines. It is the basis for the country's national language Filipino. I have heavily based the format to the EN and ES languages. I have provided several words in the lemmatizer lookup table, added stop words from a source, translated numeric words to its Tagalog counterpart, added some tokenizer exceptions, and kept the tag map the same as the English language. While the alpha language passed the preliminary testing that you provided, I think it needs more data to be useful for most cases. * Added alpha support for Tagalog language * Edited contributor template * Included SCA; Reverted templates * Fixed SCA template * Fixed changes in SCA template
19 lines
423 B
Python
19 lines
423 B
Python
# coding: utf8
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
# Adding a lemmatizer lookup table
|
|
# Documentation: https://spacy.io/docs/usage/adding-languages#lemmatizer
|
|
# Entries should be added in the following format:
|
|
|
|
|
|
LOOKUP = {
|
|
"kaugnayan": "ugnay",
|
|
"sangkatauhan": "tao",
|
|
"kanayunan": "nayon",
|
|
"pandaigdigan": "daigdig",
|
|
"kasaysayan": "saysay",
|
|
"kabayanihan": "bayani",
|
|
"karuwagan": "duwag"
|
|
}
|