NLTKPreprocessor.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:ai-chatbot-framework 作者: alfredfrancis 项目源码 文件源码
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()
评论列表


问题


面经


文章

微信
公众号

扫码关注公众号