Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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.

Files for ambiverseclient, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size ambiverseclient-0.3-py3-none-any.whl (18.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size ambiverseclient-0.3.tar.gz (18.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page