Classifier interface for Whyis
Project description
whyis_classifier
Installation
-
install whyis using this command
WHYIS_BRANCH=master bash < <(curl -skL https://raw.githubusercontent.com/tetherless-world/whyis/master/install.sh) -
whyis will be installed in /apps/whyis
-
In your knowledge graph directory, add the classifier agent to the list of inferencers in your config.py file:
- Add the following import line:
import whyis_classifier.classifier_agent as cl - Add the following line to the
inferencersitem in theConfigdictionary constructor:"Classifier": cl.Classifier()
- Add the following import line:
-
Write your own classifier, using
whyisclassifier.WhyisClassifieras its base class- You must provide your own identifier (an
rdflib.URIRef) and write alabel()method
- You must provide your own identifier (an
-
Locate your
whyis_classifierinstallation, and in the fileuser_classifiers.py, import your classifier and add it to theuser_classifiersdictionary in the form'my_classifier_name': my_file.MyClassifier()- To locate your
whyis_classifierinstallation, runpython -c "import whyis_classifier as _; print(_.__path__[0])"
- To locate your
-
Reload your knowledge graph to run the inferencer over it
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file whyis_classifier-0.0.1.tar.gz.
File metadata
- Download URL: whyis_classifier-0.0.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.3 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b639ac39526e6556985b086e8ea7f5fac95130fa341dda495df22f595281dd8
|
|
| MD5 |
3da0af942eb1152c913d2fe47772c1c9
|
|
| BLAKE2b-256 |
07fd54d4ff516eafc5f8ab5b4cde1fa736ff3bac140441193ad0c3a96a978815
|
File details
Details for the file whyis_classifier-0.0.1-py3-none-any.whl.
File metadata
- Download URL: whyis_classifier-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.3 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93a4779ef602744a26ca740c6609f8279855770657c850abd21c5a4befb08479
|
|
| MD5 |
b8bf1fc29debfd71171b9e6e30a1ee60
|
|
| BLAKE2b-256 |
b0ee2013658995b3f53922edd603acd1a3e9390fed37a7ebdaebc9bf64a81ad2
|