ambiverseclient-0.3
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ambiverseclient-0.3 |
| نام | ambiverseclient |
| نسخه کتابخانه | 0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Linus Kohl |
| ایمیل نویسنده | linus@munichresearch.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/ambiverseclient/ |
| مجوز | GPLv3 |
****************
ambiverse-client
****************
**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
*********************
.. code-block:: python
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
*******************
.. code-block:: python
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>
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
| >=3.0.0rc4 | marshmallow |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl ambiverseclient-0.3:
pip install ambiverseclient-0.3.whl
نصب پکیج tar.gz ambiverseclient-0.3:
pip install ambiverseclient-0.3.tar.gz