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
Metadata
Release files for whyis-classifier 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| whyis_classifier-0.0.1.tar.gz | 5.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| whyis_classifier-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.5 kB
Release files / whyis_classifier-0.0.1.tar.gz
| Download URL | whyis_classifier-0.0.1.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7b639ac39526e6556985b086e8ea7f5fac95130fa341dda495df22f595281dd8
|
|
BLAKE2b-256 checksum How to use checksums |
07fd54d4ff516eafc5f8ab5b4cde1fa736ff3bac140441193ad0c3a96a978815
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / whyis_classifier-0.0.1-py3-none-any.whl
| Download URL | whyis_classifier-0.0.1-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93a4779ef602744a26ca740c6609f8279855770657c850abd21c5a4befb08479
|
|
BLAKE2b-256 checksum How to use checksums |
b0ee2013658995b3f53922edd603acd1a3e9390fed37a7ebdaebc9bf64a81ad2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|