text-strings

时间:2024-06-07 08:35:45
【文件属性】:

文件名称:text-strings

文件大小:4KB

文件格式:ZIP

更新时间:2024-06-07 08:35:45

Python

从文本字符串返回单词对的模块 例子: >> > from trw_text_string import WordPairCounter >> > string_example = """Hello, I like nuts. Do you like nuts? No? Are you sure? Why don't you like nuts? Are you nuts? I like you""" >> > text_string_object = WordPairCounter ( string_example ) >> > text_string_object . get_word_pairs () are you : 2 like nuts : 3 you like : 3 i like : 2 安装: 为了安装trw_text


【文件预览】:
text-strings-master
----MANIFEST.in(13B)
----setup.py(305B)
----README.md(546B)
----trw_text_string()
--------__init__.py(44B)
--------WordPairCounter.py(8KB)

网友评论