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-12.0.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

sauce_lib_nltk-12.0.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sauce-lib-nltk-12.0.0.tar.gz
  • Upload date:
  • Size: 5.3 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-12.0.0.tar.gz
Algorithm Hash digest
SHA256 958de15b5ac0fddff6358744c05cfd562ff533448fce7a735dc339383dfda954
MD5 6f4f3c4ad8f99197e5d732736143b813
BLAKE2b-256 55a8ad96a2039a532084bbc0a38c45a13224e02eaa6d93f3f1d99688a689242c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sauce_lib_nltk-12.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 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-12.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b6787693b25eeb00700b39c24b9eeb8a9fed133d5857cf45e4265f5a94216fd6
MD5 ec31a2235c2beccff865ce26cade3c8a
BLAKE2b-256 955ef43b3f1f5e646fd76e518e50b2b59327dfd0b07ff97f9fd5e1856f89e9bf

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