Skip to main content

gets synonyms and hypernyms of labels for an asset

Project description

A python library for extracting inflections and synonyms

from sauce.nltkrdf.wordnet import WordnetEnricher

data = """[{"@id":"https://api.sauce-project.tech/assets/1234","@type":["https://vocabularies.sauce-project.tech/core/Asset"],"https://vocabularies.sauce-project.tech/core/depicts":[{"@id":"https://api.sauce-project.tech/depictions/1234"}]},{"@id":"https://api.sauce-project.tech/depictions/1234","@type":["https://vocabularies.sauce-project.tech/core/Depiction"],"https://vocabularies.sauce-project.tech/core/label":[{"@value":"running"}]},{"@id":"https://vocabularies.sauce-project.tech/core/Asset"},{"@id":"https://vocabularies.sauce-project.tech/core/Depiction"}]"""

enricher = WordnetEnricher(data) enriched_asset = enricher.enrich()

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

sauce-lib-nltk-7.0.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

sauce_lib_nltk-7.0.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file sauce-lib-nltk-7.0.0.tar.gz.

File metadata

  • Download URL: sauce-lib-nltk-7.0.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.5

File hashes

Hashes for sauce-lib-nltk-7.0.0.tar.gz
Algorithm Hash digest
SHA256 afa0775e589306c74a6043584dabaa73bd21b017a4530c5c84f01c57f1f94110
MD5 27d6ae196c6bed925cca6d561beab46e
BLAKE2b-256 c66c82bcef017860b7b4c3288f5d35bb8b14ee24c6ea9f04e03daf6174bd291c

See more details on using hashes here.

File details

Details for the file sauce_lib_nltk-7.0.0-py3-none-any.whl.

File metadata

  • Download URL: sauce_lib_nltk-7.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 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/46.1.3 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.5

File hashes

Hashes for sauce_lib_nltk-7.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 41397f0f5532f4c3b0f0bd091a2795f7401e434b5cebde94678f143f46071ddc
MD5 ea78a62ddf2c565cb7d765fe9042624d
BLAKE2b-256 9a7654f4081d160bca04837c8156d177fed97733861a6be2d6d00eb068d978ad

See more details on using hashes here.

Supported by

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