开发者社区> 问答> 正文

用jieba进行分词需要了解哪些函数的使用呢?

已解决

用jieba进行分词需要了解哪些函数的使用呢?

展开
收起
出笼的鸟 2022-07-25 09:20:09 374 0
1 条回答
写回答
取消 提交回答
  • 推荐回答

    用jieba进行分词,注意两个高级函数aply、lambda的使用

    In [28]:#用jieba进行分词,注意两个高级函数aply、lambda的使用
    datal(' seg words'1 = datall' content'1 aoply (lambda x:' '.join(jieba. cut (x)))
    Building prefix dict from the default dictionary ..
    Dumping model to file cache C:\Users\wangPC\AppData\Local\Temp\jieba.cache
    Loading model cost 0.705 seconds.
    Prefix dict has been built succesfully.
    D:\Anaconda3\lib\site-packages\ipykernel_launcher.py:2: SettingWithCopylWarning:
    A value is trying to be set on a copy of a slice from a DataFrame.
    Try using .loc[row_indexer,col_indexer] = value instead
    See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#retur
    ning-a-view-versus-a-copy
    
    2022-07-25 11:03:31
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载