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 Distributions

wikiclass-0.1.1.zip (21.1 kB view details)

Uploaded Source

wikiclass-0.1.1.tar.gz (12.1 kB view details)

Uploaded Source

File details

Details for the file wikiclass-0.1.1.zip.

File metadata

  • Download URL: wikiclass-0.1.1.zip
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wikiclass-0.1.1.zip
Algorithm Hash digest
SHA256 49a3ae4ba254af1b29428098d33ca6c72e5180f326bd630e484abb6c06c12558
MD5 0358edcf2fee84ade9e8d4ab286c2005
BLAKE2b-256 a7a32dcdc2ba7ee396a348236fb1bb4e00a74e9a8e0a4ba4de5cf2336e4b4cb5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for wikiclass-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4d6b1dadbee327d7d5e8f7d848837e2e7e9677780f9ed19e40755f0d4b76e57e
MD5 48c8e3ef4c29d3a92996347e553996cf
BLAKE2b-256 5ff662aba8aef9157eb06f8fd21900a70fe262f202103b5bde689044831df5da

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