def __init__(self, stopwords=None, punct=None,
lower=True, strip=True):
self.lower = lower
self.strip = strip
#self.stopwords = stopwords or set(sw.words('english'))
self.punct = punct or set(string.punctuation)
self.lemmatizer = WordNetLemmatizer()
NLTKPreprocessor.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录