2014-12-21 09:59:07 +00:00
|
|
|
from os import path
|
2014-12-23 00:40:32 +00:00
|
|
|
|
2015-08-26 17:15:42 +00:00
|
|
|
from ..parts_of_speech cimport NOUN, VERB, ADJ
|
2014-12-30 10:20:15 +00:00
|
|
|
|
2015-08-26 17:15:42 +00:00
|
|
|
from ..lemmatizer import Lemmatizer
|
2014-12-21 09:59:07 +00:00
|
|
|
|
|
|
|
|
2015-08-24 03:25:55 +00:00
|
|
|
cdef class EnPosTagger(Tagger):
|
2014-12-27 07:45:16 +00:00
|
|
|
"""A part-of-speech tagger for English"""
|
2015-08-24 03:25:55 +00:00
|
|
|
def make_lemmatizer(self, data_dir):
|
|
|
|
return Lemmatizer(path.join(data_dir, 'wordnet'), NOUN, VERB, ADJ)
|