We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c52a3b2 + 6b6ac47 commit fa81e34Copy full SHA for fa81e34
AUTHORS.md
@@ -302,6 +302,7 @@
302
- Akihiro Yamazaki <https://github.com/zakkie>
303
- Ron Urbach <https://github.com/sharpblade4>
304
- Vivek Kalyan <https://github.com/vivekkalyan>
305
+- Tom Strange https://github.com/strangetom
306
307
## Others whose work we've taken and included in NLTK, but who didn't directly contribute it:
308
nltk/tag/__init__.py
@@ -65,6 +65,8 @@
65
isort:skip_file
66
"""
67
68
+import functools
69
+
70
from nltk.tag.api import TaggerI
71
from nltk.tag.util import str2tuple, tuple2str, untag
72
from nltk.tag.sequential import (
@@ -100,6 +102,7 @@
100
102
}
101
103
104
105
+@functools.lru_cache
106
def _get_tagger(lang=None):
107
if lang == "rus":
108
tagger = PerceptronTagger(lang=lang)
0 commit comments