translate.py 文件源码

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

项目:python-translate 作者: caspartse 项目源码 文件源码
def suggest(self):
        if re.sub(r'[a-zA-Z\d\'\-\.\s]', '', self.word):
            return None
        import enchant
        try:
            d = enchant.DictWithPWL(
                'en_US', path + '/data/spell-checker/american-english-large')
        except:
            d = enchant.Dict('en_US')
        suggestion = d.suggest(self.word)
        return suggestion
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号