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 articlequality
>>> from revscoring import Model
>>>
>>> scorer_model = Model.load(open("models/enwiki.nettrom_wp10.gradient_boosting.model", "rb"))
>>>
>>> text = "I am the text of a page.  I have a <ref>word</ref>"
>>> articlequality.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

articlequality-0.3.2.tar.gz (25.0 kB view details)

Uploaded Source

Built Distribution

articlequality-0.3.2-py3.5.egg (97.7 kB view details)

Uploaded Source

File details

Details for the file articlequality-0.3.2.tar.gz.

File metadata

File hashes

Hashes for articlequality-0.3.2.tar.gz
Algorithm Hash digest
SHA256 e6f760fbd733c6cc2be6b8da9386546b814a6931e68d1c5963e7f28e9272d38f
MD5 59d32b83ab721b7a4647d254900c75b7
BLAKE2b-256 95553db239aec1b819aaa8feea892f73802ad6f617e890251666f43aeb376c1c

See more details on using hashes here.

File details

Details for the file articlequality-0.3.2-py3.5.egg.

File metadata

File hashes

Hashes for articlequality-0.3.2-py3.5.egg
Algorithm Hash digest
SHA256 b2c2c6d8d258509b45e8bd5b4d6433dc2fe19dd24fc7b89343c426d06320b8aa
MD5 89662131a92446ab4d88c0cb8ea88928
BLAKE2b-256 eb8efa0916a617141fbcf85e64bb5ab8bd208ea11bb0de4a2148844ef95383fb

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