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/wikimedia/articlequality/tree/master/models
- Documentation: http://pythonhosted.org/wikiclass
Basic usage
>>> import articlequality
>>> from revscoring import Model
>>>
>>> scorer_model = Model.load(open("models/enwiki.nettrom_wp10.gradient_boosting.model", "rb"))
>>>
>>> text = "I am the text of a page. I have a <ref>word</ref>"
>>> articlequality.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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
articlequality-0.4.0.tar.gz
(28.1 kB
view hashes)
Built Distribution
Close
Hashes for articlequality-0.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 383b94699d63a0979f6c3ce6c3346fc6c43dbd9835ca78e89ee2946054a16bf2 |
|
MD5 | 00a9f271619fa0da8d2f4d4c2ca48f97 |
|
BLAKE2b-256 | ca28274bf305fb6e40b8966f13d55ed84140479470131af05e8a24b1dc015cd6 |