Use machine learning APIs A3RT from Python

A3RT It seems that you can classify text, automatically generate it, score images, interact with it, and so on.

The APIs that can be used now are as follows.

Used in Python

Library to use: pya3rt https://github.com/nocotan/pya3rt

Installation

$ pip install pya3rt

sample

Text Suggest

# -*- coding: utf-8 -*-
import pya3rt

apikey = "{YOUR_API_KEY}"
client = pya3rt.TextSuggestClient(apikey)

print(client.text_suggest("Horse"))
print(client.text_suggest("Autumn", style=1))
print(client.text_suggest("func", style=2))

Text Classification

# -*- coding: utf-8 -*-
import pya3rt

apikey = "{YOUR_API_KEY}"
client = pya3rt.TextClassificationClient(apikey)

print(client.classify("We are involved in a wide range of activities from system planning to development and operation."))

Proofreading API

# -*- coding: utf-8 -*-
import pya3rt

apikey = "{YOUR_API_KEY}"
client = pya3rt.ProofreadingClient(apikey)

print(client.proofreading("We are involved in a wide range of activities from system planning to development and operation."))
print(client.proofreading("We are involved in a wide range of activities from system standards to development and operation."))

Image Influence API

# -*- coding: utf-8 -*-
import pya3rt

apikey = "{YOUR_API_KEY}"
client = pya3rt.ImageInfluenceClient(apikey)

print(client.get_upload_url())
print(client.meat_score("meat1.jpeg ", 1))

Talk API

# -*- coding: utf-8 -*-
import pya3rt

apikey = "{YOUR_API_KEY}"
client = pya3rt.TalkClient(apikey)

print(client.talk("Good morning"))

Recommended Posts

Use machine learning APIs A3RT from Python
Use thingsspeak from python
Use fluentd from python
Use MySQL from Python
Use MySQL from Python
Use BigQuery from python.
Use mecab-ipadic-neologd from python
Machine learning python code summary (updated from time to time)
Use MySQL from Anaconda (python)
Python learning memo for machine learning by Chainer from Chapter 2
Machine learning with Python! Preparation
Python Machine Learning Programming> Keywords
Beginning with Python machine learning
Three Reasons Why Machine Learning Learners Should Use Python
Use e-Stat API from Python
How to use machine learning for work? 03_Python coding procedure
Use Stanford Core NLP from Python
Machine learning with python (1) Overall classification
Machine learning summary by Python beginners
Read and use Python files from Python
Forcibly use Google Translate from python
<For beginners> python library <For machine learning>
Use kabu Station® API from Python
Use Azure Blob Storage from Python
Use the Flickr API from Python
Python: Preprocessing in Machine Learning: Overview
Use fastText trained model from Python
"Scraping & machine learning with Python" Learning memo
Use Google Analytics API from Python
Machine learning
python learning
[Note] AI / machine learning / python related websites [updated from time to time]
Python & Machine Learning Study Memo: Environment Preparation
scikit-learn How to use summary (machine learning)
Notes on PyQ machine learning python grammar
Amplify images for machine learning with python
Machine learning with python (2) Simple regression analysis
Learning notes from the beginning of Python 1
I installed Python 3.5.1 to study machine learning
[python] Frequently used techniques in machine learning
Why Python is chosen for machine learning
I want to use jar from python
"Python Machine Learning Programming" Summary Note (Jupyter)
Python: Preprocessing in machine learning: Data acquisition
Use Google Cloud Vision API from Python
[Shakyo] Encounter with Python for machine learning
[Python] First data analysis / machine learning (Kaggle)
[Python] When an amateur starts machine learning
[Python] Web application design for machine learning
Python and machine learning environment construction (macOS)
An introduction to Python for machine learning
Use Django from a local Python script
[Python] Saving learning results (models) in machine learning
Python: Preprocessing in machine learning: Data conversion
Use C ++ functions from python with pybind11
Python & Machine Learning Study Memo ③: Neural Network
Python & Machine Learning Study Memo ④: Machine Learning by Backpropagation
Learning notes from the beginning of Python 2
Python & Machine Learning Study Memo ⑥: Number Recognition
Build AI / machine learning environment with Python
[Python] Easy introduction to machine learning with python (SVM)