Skip to main content

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.

## 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wikiclass-0.3.1.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

wikiclass-0.3.1-py2.py3-none-any.whl (33.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file wikiclass-0.3.1.tar.gz.

File metadata

  • Download URL: wikiclass-0.3.1.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wikiclass-0.3.1.tar.gz
Algorithm Hash digest
SHA256 f02a9ecd272cc13671f7a2f61e71732b78bdaa512bbdc029cd939307214ce56e
MD5 2a136511820ccd937b524b8b366c46cb
BLAKE2b-256 e4ad4c26d1c6d92bdef2e9276075b99af43292bf751ada79faf39537f23b3ee8

See more details on using hashes here.

File details

Details for the file wikiclass-0.3.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for wikiclass-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a1838999c003ae2c031eab99ba7b24e2b406c61e217500f0673136391aec388f
MD5 b14c5b913106d43c2ab0c5efb6e9a0d5
BLAKE2b-256 2bcc662b7af466cfa303f7cb29c5bc4c73e12d76a67dc0c37fe10e69d865c2af

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page