A library for performing automatic detection of assessment classes of Wikipedia articles.
Project description
# Wikipedia article quality classification
This library provides a set of utilities for performing automatic detection of assessment classes of Wikipedia articles. For more information, see the full documentation at http://pythonhosted.org/wikiclass.
Compatible with Python 3.x only. Sorry.
Install: pip install wikiclass
Models: https://github.com/halfak/wikiclass/tree/master/models
Documentation: http://pythonhosted.org/wikiclass
## Basic usage
>>> 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}}
## Authors * Aaron Halfaker – https://github.com/halfak * Morten Warncke-Wang – http://www-users.cs.umn.edu/~morten
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for wikiclass-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c320896ec1f5bbd6061acca10af3064f32ba35d738b36e7e623099fee318e5ae |
|
MD5 | bcfcc9294e528eed12c11d176b6cf67f |
|
BLAKE2b-256 | 1ca29518ef4f1dc7ea973e2a9b0259486b6533413e08e995179db1835ca91f14 |