No project description provided
Project description
# ambiverse-client
[![](https://img.shields.io/badge/project-Risklio-green.svg?style=flat-square)](https://risklio.com/)
**Note:** This client is not affiliated with Ambiverse or the Max-Planck-Institute.
## Table of Contents
- [Install](#install)
- [Usage](#usage)
- [License](#license)
## Install
Install with pip:
```sh
pip install ambiverse-client
```
## Usage
### KnowledgeGraph Client
```py
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
```py
from ambiverseclient.clients import AmbiverseNLU
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(inp)
```
## 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@riskl.io>
[![](https://img.shields.io/badge/project-Risklio-green.svg?style=flat-square)](https://risklio.com/)
**Note:** This client is not affiliated with Ambiverse or the Max-Planck-Institute.
## Table of Contents
- [Install](#install)
- [Usage](#usage)
- [License](#license)
## Install
Install with pip:
```sh
pip install ambiverse-client
```
## Usage
### KnowledgeGraph Client
```py
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
```py
from ambiverseclient.clients import AmbiverseNLU
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(inp)
```
## 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@riskl.io>
Project details
Release history Release notifications | RSS feed
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.1.tar.gz
(17.7 kB
view hashes)
Built Distribution
Close
Hashes for ambiverseclient-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03b4f9e21a82f0514d9562661a4b76f0a3d874c3cb01549931090b29063062b3 |
|
MD5 | 05a57281520440c0838f7501cb40232d |
|
BLAKE2b-256 | e8264d18cf6385a325a1c4a639f7fe7b3f88ded9f95145f71cbf4c0c9dcc8965 |