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.
Metadata
Release files for ambiverseclient 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ambiverseclient-0.3.tar.gz | 18.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ambiverseclient-0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.5 kB
Release files / ambiverseclient-0.3.tar.gz
| Download URL | ambiverseclient-0.3.tar.gz |
|---|---|
| Size | 18.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
28736ea20d5fdc06660386b8263792ba0624c839a51f2f81bd2494f04fbdd17c
|
|
BLAKE2b-256 checksum How to use checksums |
3a51839ea7bab8de5da1c3763a93a9652f3c1c565b9a69bdfeee309e6bc909b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / ambiverseclient-0.3-py3-none-any.whl
| Download URL | ambiverseclient-0.3-py3-none-any.whl |
|---|---|
| Size | 18.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e4f62812cf53b9e7cc4548b891f2a8652d787cd5673975d5e09314f1f7bde875
|
|
BLAKE2b-256 checksum How to use checksums |
a6ef8e43e618653acc53ae3be6a3c167e61250f16b28d3a3982f4294170f420b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|