Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Kian is the neural network designed to serve Wikidata.

Project Description

Kian is the neural network designed to serve Wikidata.

This library in current shape adds statements to items based on categories in Wikis (Wikipedia, Wikisource, etc.)
In order to add statements or parse articles you need to have pywikibot-core installed.

How to run this code for a run on classifying humans based on Persian Wikipedia:


python scripts/ -n faHuman -w fawiki -p P31 -v Q5
python scripts/ -n faHuman
python scripts/ -n faHuman #To see AUC and fitness parameters
python scripts/ -lang:fa -newpages:100 -n faHuman

Bottlenecks of speed in Kian are:

1) Loading category links from Wikipedia. Since it caches them training different models from one wiki tends to work better

2) Training the model. Since it's an ANN and ANNs are resource consuming to train, this may take a while but depends on Wiki you are working with.

Dependency injection
Kian is usable for any kind of training, you can simply inject the training set and get the result:

.. code-block:: python
>>> from kian import Kian
>>> bot = Kian(training_set=the_training_set)
>>> bot.train()
>>> bot.theta
>>> bot.finalize(path='path_to_save_results')

Amir Sarabadani:
* Ladsgroup<AT>

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(56.6 kB) Copy SHA256 Hash SHA256
2.7 Egg Mar 18, 2016
(57.9 kB) Copy SHA256 Hash SHA256
3.4 Egg Mar 18, 2016
(12.7 kB) Copy SHA256 Hash SHA256
Source Mar 18, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting