客户为网络,文本有效

pyredpen的Python项目详细描述


pyredpen:文本验证器的客户端

版权所有(c)2015 Takahiro Yoshimuraaltakey@gmail.com

这是一个python客户机,用于RedPen,一个文本 验证器。

0个。如何使用

$ /path/to/python3/bin/pyvenv ~/ve/rp
$ source ~/ve/rp
(rp) $ python ./setup.py develop # assuming you are standing on the working copy you've just cloned
(rp) $ pip install pyredpen      # ... otherwise install from PyPI
...
(rp) $ redpen-validate examples/sampledoc-en.txt
Found errors (4)
(rp) $ redpen-flymake examples/sampledoc-en.txt
examples/sampledoc-en.txt:1:0: warning: The number of words (32) exceeds the maximum of 30. [WordNumber]
examples/sampledoc-en.txt:1:128: warning: Found repeated word "such". [DoubledWord]
examples/sampledoc-en.txt:1:133: warning: Found repeated word "software". [DoubledWord]
...
(rp) $ redpen-flymake examples/sampledoc-ja.txt
examples/sampledoc-ja.txt:1:0: warning: The length of the sentence (101) exceeds the maximum of 100. [SentenceLength]
examples/sampledoc-ja.txt:1:83: warning: Found invalid symbol ",". [InvalidSymbol]
examples/sampledoc-ja.txt:1:49: warning: Found repeated word "分散". [DoubledWord]
examples/sampledoc-ja.txt:1:51: warning: Found repeated word "ソフトウェア". [DoubledWord]
...

一。功能

  • python 3安全
  • 简单的ish api

2.错误

  • 盲目假设utf-8的输入和输出。
  • 疯狂的黑客。

三。许可证

麻省理工学院的执照。请参阅license.txt。

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

推荐PyPI第三方库


热门话题
java Android Action_Edit Intent无法像以前一样调用App Gallery来编辑图片   确保JRE兼容性的java适当程序(32或64位)   java JSONArray。for循环中的add(JSONObject)正在替换for循环中的旧值,数组由循环中的最后一个值组成   java需要帮助创建一个返回数组的方法,该数组的元素是另一个数组的平方   使用SmbFile w/groovy XmlSluper()创建xml。解析()Java   检查大小后的java ArrayIndexOutOfBoundsException   乘法表中的第k个最小元素   java 401 on请求,其中指定了'permitAll()'   java如何附加ORC文件   java hibernate类模型   java IDEA没有看到由自定义注释处理器生成的方法   Servlet中未声明java SerialVersionId   java linkedlist到达列表末尾时   java如何正确对齐EditText光标?   java 6编译器1.6上的eclipse重写方法错误   java如何在基于Jersey的RESTful Web服务中读取post数据   java如何在活动中正确使用接口?   Java的JIT编译器的工作速度有多快?