Skip to main content

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 inferencers item in the Config dictionary constructor: "Classifier": cl.Classifier()
  • Write your own classifier, using whyisclassifier.WhyisClassifier as its base class

    • You must provide your own identifier (an rdflib.URIRef) and write a label() method
  • Locate your whyis_classifier installation, and in the file user_classifiers.py, import your classifier and add it to the user_classifiers dictionary in the form 'my_classifier_name': my_file.MyClassifier()

    • To locate your whyis_classifier installation, run python -c "import whyis_classifier as _; print(_.__path__[0])"
  • Reload your knowledge graph to run the inferencer over it

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

whyis_classifier-0.0.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

whyis_classifier-0.0.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

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

Hashes for whyis_classifier-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7b639ac39526e6556985b086e8ea7f5fac95130fa341dda495df22f595281dd8
MD5 3da0af942eb1152c913d2fe47772c1c9
BLAKE2b-256 07fd54d4ff516eafc5f8ab5b4cde1fa736ff3bac140441193ad0c3a96a978815

See more details on using hashes here.

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

Hashes for whyis_classifier-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 93a4779ef602744a26ca740c6609f8279855770657c850abd21c5a4befb08479
MD5 b8bf1fc29debfd71171b9e6e30a1ee60
BLAKE2b-256 b0ee2013658995b3f53922edd603acd1a3e9390fed37a7ebdaebc9bf64a81ad2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page