Skip to main content

No project description provided

Project description

Note: This client is not affiliated with Ambiverse or the Max-Planck-Institute.

Table of Contents

Install

Install with pip:

`sh pip install ambiverse-client `

Usage

KnowledgeGraph Client

from ambiverseclient.clients import KnowledgeGraph

kg = KnowledgeGraph(API_ENDPOINT_HOST, port=API_ENDPOINT_PORT)
entity_list = ["http://www.wikidata.org/entity/Q104493", "http://www.wikidata.org/entity/Q103968"]
result = kg.entities(entity_list)

AmbiverseNLU Client

from ambiverseclient.clients import AmbiverseNLU
from ambiverseclient.models import AnalyzeInput

ac = AmbiverseNLU(API_ENDPOINT_HOST, port=API_ENDPOINT_PORT)
request_doc = AnalyzeInput(docId="test", language="en")
request_doc.text = """Brexit: UBS to move London jobs to Europe as lack of transition deal forces
                     'significant changes' Swiss banking giant expects to merge UK entity with its
                     German-headquartered European ..."""
ac.analyze(request_doc)

License

This code is distributed under the terms of the GPLv3 license. Details can be found in the file [LICENSE](LICENSE) in this repository.

Package Author

Linus Kohl, <linus@munichresearch.com>

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

ambiverseclient-0.3.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

ambiverseclient-0.3-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file ambiverseclient-0.3.tar.gz.

File metadata

  • Download URL: ambiverseclient-0.3.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for ambiverseclient-0.3.tar.gz
Algorithm Hash digest
SHA256 28736ea20d5fdc06660386b8263792ba0624c839a51f2f81bd2494f04fbdd17c
MD5 c5e95b0c0495b495549138767db24129
BLAKE2b-256 3a51839ea7bab8de5da1c3763a93a9652f3c1c565b9a69bdfeee309e6bc909b6

See more details on using hashes here.

File details

Details for the file ambiverseclient-0.3-py3-none-any.whl.

File metadata

  • Download URL: ambiverseclient-0.3-py3-none-any.whl
  • Upload date:
  • Size: 18.4 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/44.1.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for ambiverseclient-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e4f62812cf53b9e7cc4548b891f2a8652d787cd5673975d5e09314f1f7bde875
MD5 b3d83416e6429492af8dfdf0b1d43c7d
BLAKE2b-256 a6ef8e43e618653acc53ae3be6a3c167e61250f16b28d3a3982f4294170f420b

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