spaCy/spacy/en/pos.pyx

12 lines
301 B
Cython
Raw Normal View History

2014-12-21 09:59:07 +00:00
from os import path
from ..parts_of_speech cimport NOUN, VERB, ADJ
from ..lemmatizer import Lemmatizer
2014-12-21 09:59:07 +00:00
cdef class EnPosTagger(Tagger):
2014-12-27 07:45:16 +00:00
"""A part-of-speech tagger for English"""
def make_lemmatizer(self, data_dir):
return Lemmatizer(path.join(data_dir, 'wordnet'), NOUN, VERB, ADJ)