Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gesiscss/wikiwho_chobj

Open more actions menu

Repository files navigation

Binder

wikiwho_chobj

Creates change objects based on WikiWho. A change object represent a contigous edition in Wikipedia that occurred between two consecutive revision. It contains the inserted and deleted tokens, as well as the left and right context in which the changes ocurred.

It also contains the revisions, timestamps and editor of the change, as well as the positions of the change in the respective revision

You can see a demo here: Binder

How to use it?

  1. Create a Chobjer object using the id of the Wikipedia article. The Bioglass article (id = 2161298) is provided in the Github repository as an example. If you need other articles please contact us.
from wikiwho_chobj import Chobjer

chobjer = Chobjer(2161298, 'pickles', 'en', 30)
  1. You can iterate over the change objects using the iter_objets() method:
for chobjer.iter_chobjs()
	chobjer.iter_chobjs()
  1. Or create a dataframe with it
import pandas as pd

df = pd.DataFrame(co.iter_chobjs(), columns = next(co.iter_chobjs()).keys())

About

Creates change objecs based on WikiWho

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.