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.1.tar.gz
(28.1 kB
view details)
Built Distribution
File details
Details for the file articlequality-0.4.1.tar.gz
.
File metadata
- Download URL: articlequality-0.4.1.tar.gz
- Upload date:
- Size: 28.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.15.0 CPython/3.5.1+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b01f7e8da315ccc8651f30831d679679e88da21f1964f5a7360f34d0551d7a52 |
|
MD5 | 2e3193c68196332a8fac5e25ed569eb7 |
|
BLAKE2b-256 | 1d8301c9649b46aff7afbdb599f07ff79b643b630ca8747ac8d7ef4b8c627a9f |
File details
Details for the file articlequality-0.4.1-py2.py3-none-any.whl
.
File metadata
- Download URL: articlequality-0.4.1-py2.py3-none-any.whl
- Upload date:
- Size: 47.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.15.0 CPython/3.5.1+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ec97152589f70cbaa18d25884aba491687ed139531813d8c73e7e2558b45123 |
|
MD5 | 686bc439369ae20efeb4e94355af346b |
|
BLAKE2b-256 | 0a62c18589c2cc5e21a36c5a5761b71139104eb251e4bf880c7962d81710ca9e |