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 Distributions
File details
Details for the file wikiclass-0.1.0.zip
.
File metadata
- Download URL: wikiclass-0.1.0.zip
- Upload date:
- Size: 20.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c33faa4354f123687dbda7d146fc58e021017883d6203ba497200766cd39d646 |
|
MD5 | 2163c7b6ef60ad59ebee45a0dc6a9265 |
|
BLAKE2b-256 | 27cf53094566e0779b247c760f09809b07f447d7757e4c0973d3b67d497e4130 |
File details
Details for the file wikiclass-0.1.0.tar.gz
.
File metadata
- Download URL: wikiclass-0.1.0.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0635125cf88d8eb5914fac3d4bd9173708c2f7fa4e38575e6031636724c3f7fc |
|
MD5 | 4696052def3b47bd7fef8650fc37c5d1 |
|
BLAKE2b-256 | f21d88c0d58dc98055450ff0c6979d6a0b6331d4ae6e3d035ef36e1d187b84d3 |