ngrams.py 文件源码

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

项目:python-search-engine 作者: ncouture 项目源码 文件源码
def test(verbose=None):
    """Run some tests, taken from the chapter.
    Since the hillclimbing algorithm is randomized, some tests may fail."""
    import doctest
    print('Running tests...')
    doctest.testfile('ngrams-test.txt', verbose=verbose)

################ Word Segmentation (p. 223)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号