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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wikiclass-0.3.2.tar.gz.
File metadata
- Download URL: wikiclass-0.3.2.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95d751d90bdadc6384794eeaa08427a9cd848cf48acb79228083f07dea59cb85
|
|
| MD5 |
1aff22a3402da6f34ade1f289be12087
|
|
| BLAKE2b-256 |
512a273f360b70422f774c0a61bd7564026944fc6c93755bf4ccb21acdb7445c
|
File details
Details for the file wikiclass-0.3.2-py2.py3-none-any.whl.
File metadata
- Download URL: wikiclass-0.3.2-py2.py3-none-any.whl
- Upload date:
- Size: 41.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2203e6342649873af824de0ba05be4754b72e386bbb8f96beefbf095ed232715
|
|
| MD5 |
e4458b778c83143dc683664ec5871dc7
|
|
| BLAKE2b-256 |
0ae606bb912d3dcc37a23bc3335cde347e902ae8846a7418c27910cc90e1cb28
|