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.2.zip (21.3 kB view details)

Uploaded Source

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

Uploaded Source

File details

Details for the file wikiclass-0.1.2.zip.

File metadata

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

File hashes

Hashes for wikiclass-0.1.2.zip
Algorithm Hash digest
SHA256 2f741a8a126b8edc21cc0a5bcc41f31a6d4e9514e237ac6fa49e412441750c21
MD5 15e9b336832593799d3d7c858ef7a9e4
BLAKE2b-256 fb401260d51a180fdead37e81dea5f7aeb816146dbc75c35aacfb4f3d04ea820

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for wikiclass-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ed0b40df12e32a6db34c7b14939902942bc7df120a92c46ee4d9ab6313a77b9e
MD5 8316fe62bb7d5b6e9b76701342159c26
BLAKE2b-256 4e869948166f5f033bc655ad583e603d229f51c362c924bd4976f9edfe529bdd

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