一个用于自动检测维基百科文章评估类别的库。
项目描述
## 维基百科文章质量分类
此库提供了一套用于自动检测维基百科文章评估类别的实用工具。有关更多信息,请参阅http://pythonhosted.org/wikiclass的完整文档。
## 仅与Python 3.x兼容。抱歉。
## 安装: pip install wikiclass
## 模型: https://github.com/halfak/wikiclass/tree/master/models
## 基本用法
>>> import wikiclass >>> from revscoring.scorer_models import MLScorerModel >>> >>> scorer_model = MLScorerModel.load(open("models/enwiki.wp10.rf.model", "rb")) >>> >>> text = "I am the text of a page. I have a <ref>word</ref>" >>> wikiclass.score(scorer_model, text) {'prediction': 'stub', 'probability': {'stub': 0.27156163795807853, 'b': 0.14707452309674252, 'fa': 0.16844898943510833, 'c': 0.057668704007171959, 'ga': 0.21617801281707663, 'start': 0.13906813268582238}}
## 作者 * Aaron Halfaker – https://github.com/halfak * Morten Warncke-Wang – http://www-users.cs.umn.edu/~morten
项目详情
下载文件
下载适合您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。
源分布
wikiclass-0.3.2.tar.gz (18.0 kB 查看哈希值)
构建分布
wikiclass-0.3.2-py2.py3-none-any.whl (41.0 kB 查看哈希值)