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.1.3.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

wikiclass-0.1.3-py2.py3-none-any.whl (19.5 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for wikiclass-0.1.3.tar.gz
Algorithm Hash digest
SHA256 1e480863e13cae68dd592625b7bee9d5ed8e6578ab5eee993903a6a4b5e20207
MD5 c5205c57e3ecfdc36783c124e4d3c8c8
BLAKE2b-256 cc248d19d2d7f60f707c3cb6b31f62c7b4ff998053afe17a85d3bc3c40eee6ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wikiclass-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1348a997de83ff77bb695df29ed8f38e45962ff21ec8785c8c156718de6f0862
MD5 cd81f4771a5795cafba679077f8f702f
BLAKE2b-256 67ffef11e70250a69da8f70a5548b1a931be06a209ac240b33eb69e8ffbf28cb

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