mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-13 21:26:58 +03:00
1f7229f40f
This reverts commitc9ba3d3c2d
, reversing changes made to92c26a35d4
.
20 lines
443 B
Python
20 lines
443 B
Python
# coding: utf8
|
|
from __future__ import unicode_literals
|
|
|
|
from ...attrs import LANG
|
|
from ...language import Language
|
|
from ...tokens import Doc
|
|
|
|
|
|
class VietnameseDefaults(Language.Defaults):
|
|
lex_attr_getters = dict(Language.Defaults.lex_attr_getters)
|
|
lex_attr_getters[LANG] = lambda text: 'vi' # for pickling
|
|
|
|
|
|
class Vietnamese(Language):
|
|
lang = 'vi'
|
|
Defaults = VietnameseDefaults # override defaults
|
|
|
|
|
|
__all__ = ['Vietnamese']
|