客户为网络,文本有效
pyredpen的Python项目详细描述
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。