处理文本的各种工具

text-tools的Python项目详细描述


文本工具

说明

操作文本的各种工具。

安装

pip install text-tools

用法

fromtext_tools.findersimportfind_best_stringcorpus="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."query="Ipsum"first_match=find_best_string(query,corpus)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
安卓在Java代码中添加平方根和退格按钮   java H2数据库在创建序列时引发意外的JdbcSQLException   Java解析方法调用其他类   java如何在Android中测量循环中代码的累积执行时间?   javascript如何构造此数组,将类别和产品分开   java正确的时间格式   java可移植性。查找和迭代器。查找而不是引发异常,获取null   Android中Telugu字符串的java正则表达式?   java需要帮助计算arrayList中的字符数   正则表达式Java正则表达式替换双引号内的双引号   安卓 java。lang.unsatifiedLinkError:未找到本机方法:org。pjsip。pjsua。pjsuaJNI。新的伙伴配置:()J   关于Java中线程和回调的多线程问题   java mod_重写规则(如果出现其他问题)   java类导入到jsp并创建对象问题   java正在从mongoDB获取损坏的信息。   java第二个JFrame首先关闭   java如何使JButton接受来自JTextField的输入?   java如何为jacksondataypehal注释记录   Java元编程难题:获取所有本身由给定注释a注释的注释